How to query with multiple category__and's?
-
Can anyone tell me how to run a query to include results from a set of categories, keeping one of the categories required?
Something like: get posts in category’s 1 and 3, or categories 1 and 4.
I know I can use category__and = array(1,3), but can I do something like category__and = array( array(1,3), array(1,4) );
Thanks in advance,
James.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to query with multiple category__and's?’ is closed to new replies.