How to use Widget Logic with Woo Commerce product categories?
I want to show my widget only on certain Woo Commerce product categories, like this here:
I have tried all these; but no results:
is_category(‘59’) || (is_single() && in_category(‘59’))
I got some help from Themify / Pinshop Support, and they told me this much:
No, it’s not a page, it’s an archive. You can use Widget Logic to set a widget specifically for archives of the product_cat taxonomy.
You could probably use a conditional tag such as is_tax(‘product_cat’) as documented here: http://codex.wordpress.org/Function_Reference/is_tax
But I am just a human, not a code demon, so please tell me what to do here?
- The topic ‘How to use Widget Logic with Woo Commerce product categories?’ is closed to new replies.