Wordpress Simple Popups
Create popups with your own editor or a single image, and choose exactly where, when and how often they appear.
Show your total WooCommerce product count anywhere with one shortcode. Filter by category, and leave out hidden products if you like.
Adds a single, no-configuration shortcode — [wc_product_count] — that outputs the live number of products in your store. It updates as you add or remove products, so copy like “65+ designs and counting” never goes stale.
[wc_product_count category="apparel,poster"] — without double-counting.status="draft" or status="any" (default is publish).1,250) that inherits the surrounding typography..zip you downloaded and click Install Now.[wc_product_count] into any page, post, widget or page-builder text block — e.g. We have [wc_product_count] designs in the shop.category="your-slug" (slugs are under Products → Categories) or status="any".
Need a number for one category only? Use [wc_product_count category="your-slug"]. Add exclude_hidden="yes" to leave out hidden products, or status="draft" / status="any" to count by status.Under Products → Categories in your WordPress admin. Separate several slugs with commas.
Style the text around it. The shortcode outputs a bare number, so placing it inside a heading turns it into a big stat counter.
No. A variable product counts once, no matter how many sizes or colors it has.
The shortcode quietly outputs nothing — no errors on your pages.
Yes — GPL-2.0, free forever, no upsells inside the plugin.
Yes. Add exclude_hidden="yes" to the shortcode. Products with catalog visibility set to Hidden won't be counted. Products set to "Shop only" or "Search results only" are still counted, because WooCommerce doesn't treat those as hidden.
I customize plugins and build new ones from scratch — same care, made for your site.
Create popups with your own editor or a single image, and choose exactly where, when and how often they appear.
Export every email from your WPForms entries, even forms with two email fields, to CSV, TXT, JSON or HTML. Filter by form and date.
Add video links to any WooCommerce product and show them on the product page — a slider when there's more than one.
Comments 2
Every comment is reviewed before it appears.
I like your plugin. Just missing 1 feature: count products in a category excluding hidden products ... Probably just an extra line in your code, but I haven't got a clue as I am no programmer :-)
Hey Michel, thanks for the suggestion! I updated the plugin and added many shortcode example
In v1.2 you now have visibly controls: Excluding hidden products (new in 1.1)
[wc_product_count exclude_hidden="yes"] counts all published products except hidden ones.
[wc_product_count category="apparel" exclude_hidden="yes"] does the same for one category.