How To Display Code In Post Or Pages

Today I'll show you how to fast and easy display code in WordPress post or page.
The solution is to change < ? php to < ;? it's effective, but what when you want to show a long code? Nothing easier, just go to and "translate" it.

Here's the example
<?php get_header(); ?>

Divi 2.0 WordPress Theme

Like what you read here in this blog post? If yes, please sign up and get latest articles delivered to your email account for FREE! You’ll be also subscribed to newsletter, where I share a exclusive content and offers.

About Kris Hoja

Hi! I'm Kris. For a while I was blogging about WordPress, now I'm owner of HogStudio - Creative Agency focused on website development.
Add me on Google+ and don't forget to follow me on Twitter :)

Leave a Reply