• Hi everyone,

    I have a question regarding the query_posts function that I can answer, and I did not find any answer on the web…

    I want to create a homepage with at the top of the content, the last article from a specific category. Under that article I want to find all other articles from every category but not the last article of the category above.

    Let’s say I want to show last article from cat=1. My code is:

    <?php query_posts(’showposts=1&cat=1); ?>

    What would be the code for the other articles with these comditions ?:

    show 5 posts from all the categories BUT not the last post from cat=1

    Thanks for your help !!!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘query_posts and conditions’ is closed to new replies.