• $cats = woocommerce_get_product_subcategories();
    
    foreach( $cats as $cat ){
    	echo woocommerce_subcategory_thumbnail( $cat );	
    }

    Doesn’t work.

    • This topic was modified 2 years, 8 months ago by ali3412.
Viewing 1 replies (of 1 total)
  • Plugin Author gazchap

    (@gazchap)

    Sorry for the delay replying, I’ve been away.

    Yes, this won’t work – my plugin hooks into the actions that WooCommerce uses to output the thumbnails, which is also why it’s not compatible with themes that do their own thing versus using the same action.

    My plugin even uses the woocommerce_subcategory_thumbnail() function itself, in situations where a category already has a thumbnail image defined on it.

Viewing 1 replies (of 1 total)
  • The topic ‘woocommerce_subcategory_thumbnail() doesn’t work’ is closed to new replies.