Title: Count of Products in One Category
Author: Silvio
Published: <strong>March 28, 2023</strong>
Last modified: April 8, 2023

---

Search plugins

![](https://ps.w.org/count-of-products-in-one-category/assets/banner-772x250.png?
rev=2888577)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/count-of-products-in-one-category/assets/icon-256x256.png?rev
=2888560)

# Count of Products in One Category

 By [Silvio](https://profiles.wordpress.org/s_i_l_l_e/)

[Download](https://downloads.wordpress.org/plugin/count-of-products-in-one-category.zip)

 * [Details](https://en-au.wordpress.org/plugins/count-of-products-in-one-category/#description)
 * [Reviews](https://en-au.wordpress.org/plugins/count-of-products-in-one-category/#reviews)
 *  [Installation](https://en-au.wordpress.org/plugins/count-of-products-in-one-category/#installation)
 * [Development](https://en-au.wordpress.org/plugins/count-of-products-in-one-category/#developers)

 [Support](https://wordpress.org/support/plugin/count-of-products-in-one-category/)

## Description

This plugin provides a shortcode that displays the count of products in a product
category. You can use the shortcode on every page or post. IMPORTANT! This is clearly
NOT an official plugin from Woocommerce.

## Installation

Upload the plugin files to the /wp-content/plugins/count-of-products-in-category-
for-wp-woocommerce directory, or install the plugin through the WordPress plugins
screen directly.
 Activate the plugin through the ‘Plugins’ screen in WordPress.
Use the shortcode [so_cp_count] in your page or post content.

## FAQ

### How do I use the shortcode?

Use the [so_cp_count] shortcode in your page or post content.
 You must specify 
a product category name (slug) in the ‘title’ parameter. This establishes the connection
to the category. ou can also additionally use the optional attribute ‘show_category_name’
to customize the output. For example, [so_cp_count title=”clothing” show_category_name
=”true”] shows the number of products in the clothing category along with the category
name. If you set the parameter ‘show_category_name’ to “false” then the category
name will not be displayed, only the number of products in the product category.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Count of Products in One Category” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Silvio ](https://profiles.wordpress.org/s_i_l_l_e/)

[Translate “Count of Products in One Category” into your language.](https://translate.wordpress.org/projects/wp-plugins/count-of-products-in-one-category)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/count-of-products-in-one-category/),
check out the [SVN repository](https://plugins.svn.wordpress.org/count-of-products-in-one-category/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/count-of-products-in-one-category/)
by [RSS](https://plugins.trac.wordpress.org/log/count-of-products-in-one-category/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.15

Added use only publish products.

#### 1.0.14

Added feature to exclude products in the trash from product count in the [category_product_count]
shortcode.

#### 1.0.13

Added: Ability to swap out the CSS styles for the plugin to a separate file.

#### 1.0.12

Removed: get_results fo count

#### 1.0.11

fix stock

#### 1.0.10

update “how to use”

#### 1.0.9

tested up 6.2

#### 1.0.8

update images in assets

#### 1.0.7

add images to assets

#### 1.0.5

Fixed issue with incorrect category name display.

#### 1.0.4

Added support for optional title and show_category_name shortcode attributes.

#### 1.0.3

Fixed issue with shortcode not displaying on some pages.

#### 1.0.2

Fixed issue with incorrect product count display.

#### 1.0.1

Initial release.

## Meta

 *  Version **1.0.15**
 *  Last updated **4 years ago**
 *  Active installations **10+**
 *  WordPress Version ** 5.8.0 or higher **
 *  Tested up to **6.2.15**
 *  PHP Version ** 7.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/count-of-products-in-one-category/)
 * Tags
 * [category](https://en-au.wordpress.org/plugins/tags/category/)[count](https://en-au.wordpress.org/plugins/tags/count/)
   [products](https://en-au.wordpress.org/plugins/tags/products/)[shortcode](https://en-au.wordpress.org/plugins/tags/shortcode/)
   [woocommerce](https://en-au.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://en-au.wordpress.org/plugins/count-of-products-in-one-category/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/count-of-products-in-one-category/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/count-of-products-in-one-category/reviews/)

## Contributors

 *   [ Silvio ](https://profiles.wordpress.org/s_i_l_l_e/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/count-of-products-in-one-category/)