how to get this tax_query working?
To achieve this you need to conditionally add the clauses, right now you always have all 3, even if only 2 are selected. So instead pass in a variable: $tax_queries = [ ‘relation’ => ‘AND’, ]; Notice I used the modern [] syntax for arrays instead of array(), and I added the relation field as … Read more