I have a query based on multiple post_types and taxonomies that works well, however I would like to add a level of complexity and query a taxonomy only for a specific taxonomy.
This query works as expected:
Array
(
[topic] => global-reach
[sections] => programs-and-services
[regions] => ghana
[post_type] => Array
(
[0] => publications
[1] => media_releases
[2] => page
)
[posts_per_page] => 10
)
Now I would like to select only the 'pages' that have the taxonomy 'options' set to 'set-as-news-item' ... here is a somewhat unlogical pseudo query of what I would like to accomplish, but it should get the idea across.
Array
(
[topic] => global-reach
[sections] => programs-and-services
[regions] => ghana
[post_type] => Array
(
[0] => aucc_publication
[1] => aucc_media
[2] => Array
(
[post_type] => 'page',
[options] => 'set-as-news-item'
(
)
[posts_per_page] => 10
)
I could use the first query above and filter out unwanted posts as I loop them, but then I could not use Wordpress' built-in pagination.
I'm asking for too much out of WP_Query right?