The best way to paste code into a wordpress post
If you maintain a blog about web development or programming, or another type of blog where you have to show some code to your readers, you already faced problems trying to paste code into wordpress text editor. If the piece of code is not deleted by the editor filters, it will be screwed up by changing the tags.
The best solution I found for this is to use pastebin. pastebin is a web application that allows you to share code or any other data with others. After you create your “paste”. Then, you can embed it using an iframe into your post. That’s it!
Disclosure: Some of the links in this post are "affiliate links." This means if you click on the link and purchase the item, I will receive an affiliate commission
Leave a Reply