How to show single post content in sidebar

by Rich on October 25, 2009

in Wordpress

Find the post you want and the id of the post and then add this code to your sidebar.

<?php query_posts('p=1'); if(have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endif; ?>

Couldn’t be simpler!

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: