How to show single post content in sidebar
-
1.) Create a post
2.) Publish the post
3.) Find out the post’s ID (egg. 96)
4.) Open your themes Sidebar.php
5.) Include this code:<?php query_posts('p=96'); if(have_posts()) : the_post(); ?> <?php the_content(); ?> <?php endif; ?>
P=THE ID OF YOUR POST!
Then the whole post-content will be shown there.
Cheers,
Morris
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to show single post content in sidebar’ is closed to new replies.