Support » Fixing WordPress » How to exclude posts via post_id from a loop?

  • 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?

  • The topic ‘How to exclude posts via post_id from a loop?’ is closed to new replies.