WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Woocommerce equivalent to in_category conditional tag (1 post)

  1. Treebeard
    Member
    Posted 4 months ago #

    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. ]

Reply

You must log in to post.

About this Plugin

About this Topic