WordPress.org

Forums

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

  1. Treebeard
    Member
    Posted 1 year 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. ]

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic