How to use Widget Logic with Woo Commerce product categories?
-
Hello!
I want to show my widget only on certain Woo Commerce product categories, like this here:
http://www.catchline.fi/Woo/product-category/kaunokirjat/
I have tried all these; but no results:
is_category(array(59))
is_category(’59’)
in_category(’59’)
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
Thanks.
“But I am just a human, not a code demon, so please tell me what to do here?
Pekka
- The topic ‘How to use Widget Logic with Woo Commerce product categories?’ is closed to new replies.