Exclude category 0
-
/?swoof=1&post_type=product&product_cat=0,bmw-s14,bmw-s38&paged=1
I changed the condition to AND, using this code
add_filter(‘woof_main_query_tax_relations’, ‘my_woof_main_query_tax_relations’); function my_woof_main_query_tax_relations() { return array( ‘product_cat’ => ‘AND’ ); }
the result is no products found due to the category 0 on the URL . How can I exclude the 0 using an action/filter?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Exclude category 0’ is closed to new replies.
