Page w/multiple post queriest: how to only show unique?
-
I have a “magazine” type page that uses multiple query loops built with WP_Query($args).
I’d like to be able to ensure only Posts that haven’t been queried yet get caught in the queries below it.
For example, Suppose the post “Hello World” was in the Category News, and Culture.
One query loop (WP_Query) queriest for posts in News, and Hello World is displayed.
The next query loop on the page queries for Culture. Since Hello World is in Culture, too, it will be displayed, again.
Is there a way to ensure that this doesn’t happen? Maybe each query loop updates some an array of the posts it displays, then each query loop will exclude those posts?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Page w/multiple post queriest: how to only show unique?’ is closed to new replies.