Im using multiple taxonomy query to get matching messages
$tax_query[] = array( 'taxonomy' => 'transfer_type', 'field' => 'id', 'terms' => $page_terms['type_term'], 'include_children' => false ); $tax_query[] = array( 'taxonomy' => 'area', 'field' => 'id', 'terms' => $page_terms['area_term'], 'include_children' => false ); $args = array( 'post_type' => 'category_description', 'tax_query' => $tax_query ); $description_post = get_posts($args);
When a message is marked with the transfer_type parameter and the area, there is no problem, but when a message is marked with only one of them, the results are erroneous.
I basically (in some cases) want to exclude all messages that have "area" or "transfer_type", and get only those that meet with another.
Is it possible?
source share