• 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)
  • Does anyone have a solution for this? I’m racking my brain trying to figure it out.

    I’m trying to do the same exact thing — query 2 sets of categorry__and combos and display the posts for those.

    Any help would be appreciated.

Viewing 1 replies (of 1 total)
  • The topic ‘How to query with multiple category__and's?’ is closed to new replies.