Get total number of products found by WooCommerce shortcode?
-
I’m using a few of the WooCommerce shortcodes to display products on some custom landing pages and it would be helpful if in my WC custom template files, I could use the total number of products found by the shortcode as a variable.
Is there a way to determine the total number of products found using one of the shortcodes, like [featured_products] or [product_category category=”appliances”]?
- The topic ‘Get total number of products found by WooCommerce shortcode?’ is closed to new replies.