Support » Plugin: WooCommerce » Woocommerce equivalent to in_category conditional tag

  • Treebeard

    (@malawimama)


    I’m trying to show a different header based on the product category. I checked woocommerce and found the is_product_category tag, but there doesn’t seem to be any way to detect if a product is IN that category. Apparently woocommerce doesn’t recognize in_category, and there doesn’t seem to be an equivalent? I did try has_term but it didn’t work.

    I can’t find anything in their documentation or forums, so hoping someone here might know of another way?

    Thanks!

    https://wordpress.org/plugins/woocommerce/

    [ Please do not bump, that’s not permitted here. ]

  • The topic ‘Woocommerce equivalent to in_category conditional tag’ is closed to new replies.