0

I'll try to be as clear as possible. My Wordpress site has multiple custom categories and posts types all which need to be displayed on the home page blogroll. But I need the first post on the homepage always to be the most recent post from a specific category.

For example the story at the top of the page will always be the latest "hot-dog" category; and below it; sorted chronologically are more "hot-dogs" mixed with "hamburger" and "nachos"

How would I accomplish this?

1 Answer 1

0

Use a 2 loops in your template file with wp_query. Check the codex page for the correct parameters

1
  • I can't seem to get a category filter to work on my first loop ' <?php query_posts('showposts=1&tag=34'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?>'
    – Sam
    Jun 25, 2012 at 15:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.