Show One Post from a Category and all stickies
-
I’m having some trouble understanding how to display stuff on the front page as I want to show it.
Basically, I have a category for site updates, and on the front page I want to show the latest site update, followed by all the sticky posts that I have stickied.
<?php
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
query_posts(‘cat=20&posts_per_page=1&paged=’ . $paged);
while (have_posts()) : the_post();
?>so far I have that, and that shows the site update. But now the tricky part is adding somewhere either inside that code or after that code to display the sticky posts below the last post in category 20 — and only stickies.
any help? not very good at php unfortunately.
- The topic ‘Show One Post from a Category and all stickies’ is closed to new replies.