Condition for Product Parent Categories
-
Hello,
Is there a way to display a widget only for children of a given Woocommerce product category?
I tried this in various formats but didn’t work: is_product_category() && in_array($cat, get_term_children(‘category-name’, ‘product_category’))
- The topic ‘Condition for Product Parent Categories’ is closed to new replies.