How to add source code in an WordPress post

To write code, I use the “Text” style of the WordPress editor, not the “Visual” tab.

I just surround that text with code and slash code, like in the example below:

On the site, it looks like this:


Subscribe to LUNLUN.com newsletter to get:
• 50% off coupons for EVERY paid course from this site.
• 100% off coupons for some paid courses from this site.
• access to exclusive resources.

It's free to subscribe. You may unsubscribe at any time. The privacy policy is here.

Your email address, please:



Leave a Reply