Displaying Raw Codes in Wordpress
This one problem has been a pain for ages. I cannot display raw codes in wordpress. Raw Codes meaning php, html or anything of that sort. Now don’t tell me there is a plugin called Raw Code because I already tried that. It didn’t work. I tried multiple tutorials with the code where you will the Code tag and have different values. It didn’t work.
How the heck would I display Raw Codes in Wordpress especially because I post alot of tutorials that include html and php. Well, I was talking to a good friend of mine Steve over the msn. He told me the trick that he have been using. I tried that and it worked like a charm.
Well this is no plugin. It is simply encoding your html and php tags. Pretty darn simple and easy.
First Go to this site to Encode your Html
Than Copy and Paste the html codes there and click Encode.
Then make this pre-tags
<pre class="alt2" style="margin: 0px; padding: 6px; border: 1px inset; width: 440px; height: 50px; text-align: left; overflow: auto;"> </pre>
In between these tags add your encoded codes and It should work.
I thought I should share this with those who don’t know how to do this because It really helps alot.









Mar 30, 2008















Nice tutorial.. I have had the problem with posting codes earlier till i read this kind of topic somewhere else too.
I had the same problem earlier and Wordpress would just process the code. I did notice a “code” button in some of the newer versions of Wordpress that could help with that too.
This is the first time I’m hearing of such a thing. Thanks. I’ve bookmarked it right away!
Yeah if you ever write a tutorial or need to display codes in your post this is what you need to do otherwise it can mess up your site.
Its good that you have posted this i might encounter this prbolem later on, thanks syed.
Thanks for this tip. I will definitely give it a shot!