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 endloop2a start
query_posts(‘cat=1&showposts=3’)
Display Cat 1
loop2 endloop2b start
query_posts(‘cat=2&showposts=3’)
Display Cat 2
loop2 endloop2c start
query_posts(‘cat=3&showposts=3’)
Display Cat 3
loop2 endI 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.