subscribe

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

Posting

Displaying code in posts

Tuesday, 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!