subscribe

You can update this text in your control panel, under Theme Options. Nam massa. Ut tempor augue non sapien lobortis aliquam. Maecenas.

Displaying code in posts

November 10th, 2009

Assuming you write posts in the HTML view (as opposed to Visual), a quick trick for displaying code in your Wordpress posts is to switch to Visual view, enter the code, and then switch back to HTML view. This will automatically translate the code into non-executable code which will be displayed in your post. Try it out by creating a new post, then switching to Visual view and copy/paste this code:

<link rel=”pingback” href=”<?php bloginfo(’pingback_url’); ?>” />

Then switch back to HTML and you will see all the characters are properly escaped, that’s how I wrote this post.

Happy escaping!

Tags: ,

2 Responses to Displaying code in posts

  1. Сергей says:

    http://rel” rel=”nofollow”> Спасибо,…

    Хотя новость уже читал…

Leave a Reply

Name and Email Address are required fields. Your email will not be published or shared with third parties.

Spam protection by WP Captcha-Free