WordPress filter function using query modifications
I think your problem is related with the use of the operator argument in your tax_query. Actually you are using IN and NOT IN. From your question I understand you want AND. Also, you don’t need set terms aguments to 0 if the $_POST[] is not set: if(isset($_POST[‘fac’])) { // I assume that $_POST[‘fac’] is … Read more