Help me figure out how to structure this meta_query within my post query!
There are two taxonomies attached to my post type ('audition_type', and 'union_requirement'). On a page of my site the user is able to use checkboxes to filter a query of the post type ('audition'). The below meta_query is working fine to get all posts that are in the terms that the user selects but it's not quite right. I need it to return all the posts that match ANY of the terms selected in the 'audition_type' taxonomy and then narrow it down further by only getting posts that have the selected 'union_requirement' terms selected . So, almost like a query within a query. That's where I can't quite figure out the logic.
'meta_query' => array( 'relation' => 'OR', array( 'key' => 'audition_type', 'value' => $typeIDs, ), array( 'key' => 'union_requirement', 'value' => $unionIDs ) ),
$unionIDs variables are arrays containing the term IDs if that wasn't obvious.