WordPress.org

Ready to get started?Download WordPress

Forums

query_posts and conditions (2 posts)

  1. Fran6
    Member
    Posted 6 years ago #

    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 !!!

  2. Fran6
    Member
    Posted 6 years ago #

    No help ?

Topic Closed

This topic has been closed to new replies.

About this Topic