WP_Query – using category__and when one of the categories is 0
You could use tax_query to solve this problem. I assume 4 and 6 are only categories, so you’ll probably need to construct the queries within the $tax_query array rather than declare it, but let us know if that is a problem. Just remember that relation => ‘AND’ must be included. $tax_query = array( relation => … Read more