# WooCommerce Product Count Shortcode — free WordPress plugin

> Show your live WooCommerce product count anywhere with one shortcode — filter by category or status if you like.

Source: https://dcarock.com/freeware/woocommerce-product-count-shortcode

- Type: free WordPress plugin
- Price: free (GPL-2.0)
- Version: 1.0
- Requires: WordPress 6.0+, PHP 7.4+
- Download: https://dcarock.com/freeware/woocommerce-product-count-shortcode

## What it does

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.

- Works anywhere shortcodes do: the **Shortcode block**, classic editor, text widgets and most page builders (WPBakery, Elementor…).
- Count one or more **categories** — `[wc_product_count category="apparel,poster"]` — without double-counting.
- Count by **status** with `status="draft"` or `status="any"` (default is `publish`).
- Outputs a **plain number** in your site's locale format (e.g. `1,250`) that inherits the surrounding typography.
- **Variable products count once**, however many variations they have.
- No settings page, no database tables, no front-end scripts or styles — just one fast query.

## Setup

1. **Install it.** In WordPress go to **Plugins → Add New → Upload Plugin**, choose the `.zip` you downloaded and click **Install Now**.
2. **Activate it** from the same screen (or later from **Plugins**). WooCommerce needs to be installed and active.
3. **Add the shortcode.** Drop `[wc_product_count]` into any page, post, widget or page-builder text block — e.g. `We have [wc_product_count] designs in the shop.`
4. **Filter it** if you need to: add `category="your-slug"` (slugs are under **Products → Categories**) or `status="any"`.

## Frequently asked questions

### Where do I find a category slug?

Under Products → Categories in your WordPress admin. Separate several slugs with commas.

### How do I style the number?

Style the text around it. The shortcode outputs a bare number, so placing it inside a heading turns it into a big stat counter.

### Do variations count as separate products?

No. A variable product counts once, no matter how many sizes or colors it has.

### What if WooCommerce is deactivated?

The shortcode quietly outputs nothing — no errors on your pages.

### Is it really free?

Yes — GPL-2.0, free forever, no upsells inside the plugin.

## Changelog

- **1.0** (2026-07-18): Initial release
