How to add Raw code to WordPress post

0

WordPress by default have limitations about not able to display codes. Learn How to add raw code to WordPress post with and without using a plugin.

add-raw-code-to-wordpress-post

WordPress is the most popular blogging platform out there, Most of the blogs on the world-wide web chose WordPress to power their blog. Even though WordPress is very popular but it still has some limitations. Specially for those who teach how to code, sometimes even we have to place some codes in our blog post to help our users to make changes to the core Codes for getting the desired results. add-raw-code-to-wordpress-postWordPress bu default will execute the raw code, this is a great feature but can be a problem for those who likes to add raw code to WordPress post.

With WordPress you have solution to add raw code to WordPress post. In this post we will teach you about how to add raw code to WordPress post.

First When you like to post a code the you should write the code normally, We are take a code for example like the one bellow

<a href=”http://www.zdidit.com” target=”_blank”>Zdidit</a>

Once you find the code then you should copy it and head to these websites  Postable or HTML Encoder. These are the online tools which will change your code to the one which can be displayed in your blog post. All you have to do is paste the code in the code input box of these tools and hit the encode or make it friendly button, and the tool will make the changes.After that you have to copy the altered code and past it in the post. The changed code will look like the code shown bellow

&amp;lt;a href=&amp;quot;http://www.zdidit.com&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Zdidit&amp;lt;/a&amp;gt;

Now the code will be like the one above which you have to place in your post. This code will be shown as code after it is executed. If you don’t use this method then WordPress will execute the code to a result like below.

Zdidit

To add a styling feature you can add <code> tag surrounding the code giving it a noticeable CSS styling.

If you like to display codes more often and don’t want to use these online tools every time then there is an option to use a plugin to display raw code to WordPress post

This the list of syntax highlighter plugins which will help you to display raw codes to your WordPress post, all the plugins will get the job done for you.Keep in mind that the plugins have different features and styling to display codes so choose the one you think is best suited for your Website.

Plugins are more suitable for easy display of raw code for a blog.

We would like to hear which way do you like, please drop us a comment in the section below.

Further read:

Leave a Reply

Your email address will not be published. Required fields are marked *