• Ok, so I’m trying to make a custom widget on a product page, and I can get the widget to show up however when I add code like

    <?php if ( in_category( 'Shirts' )) { ?>
    &bull; Shirts
    <?php } ?>

    The category is not read or printed on the widget. I have tried every possible Taxonomy in place of “in_category” like product_cat, in_product_category, and many others. The selected category is in the product categories. What am I doing wrong?
    I’ve done hours of searching, and nothing works. Help is very much appreciated! Thanks in Advance!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WooCommerce] Woocommerce taxonomy product’ is closed to new replies.