WordPress.org

Ready to get started?Download WordPress

Forums

How to exclude posts via post_id from a loop? (1 post)

  1. Marc
    Member
    Posted 6 years ago #

    Hi!

    I have 4 loops:

    loop start
    get_post_id
    query_posts('showposts=1')
    Display newest post
    loop end

    loop2a start
    query_posts('cat=1&showposts=3')
    Display Cat 1
    loop2 end

    loop2b start
    query_posts('cat=2&showposts=3')
    Display Cat 2
    loop2 end

    loop2c start
    query_posts('cat=3&showposts=3')
    Display Cat 3
    loop2 end

    I want to display the newest post in the first loop but exclude it from the other 3 loops. Any idea to do this?

Topic Closed

This topic has been closed to new replies.

About this Topic