...while continuing to display all other posts as per usual. I haven't been able to find anything to do this. Just to be clear, I'm not interested in a static home page. I just want one particular post to always be at the top of the page.
...while continuing to display all other posts as per usual. I haven't been able to find anything to do this. Just to be clear, I'm not interested in a static home page. I just want one particular post to always be at the top of the page.
You can either edit the loop to run twice. Or you can hard code the post and its content into index.php (bad practise). Codex is replete with loop editing voodoo.
Alternative:
WP-Sticky plugin
http://www.lesterchan.net/portfolio/programming.php
Thanks, both great suggestions. For now, WP-Sticky is great.
use a query and then u don't have to use plugin:
in the index, put this only
<?php
// retrieve one post with an ID of 5
query_posts('p=5');
global $more;
// set $more to 0 in order to only get the first part of the post
$more = 0;
// the Loop
while (have_posts()) : the_post();
// the content of the post
the_content('Read the full post ยป');
endwhile;
?>
change p=5 to a specik post id
This topic has been closed to new replies.