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.

Count Shortcode


Shortcode to count number of posts that match a given set of criteria; provides link to query to display list of matching posts.

Works with both built in post types (pages, posts) and taxonomies (tags, categories), as well as custom post types and custom taxonomies.


You have a car custom post type and would like a count of all the red cars in your inventory, as well as a link to a listing of those cars.

Red Cars in Inventory: [count color=red]

Would return the number of cars, as well as a link to (which may rewrite depending on your permalink structure)


Insert a shortcode in your post in the form of [count {taxonomy}={value}]. You can add as many or as fiew taxonomies as you would like.

You can also use the post_type argument to specify a post type (page, post, car, etc.)

List Usage

You can count all terms within a taxonomy, e.g., [list-counts taxonomy=”tags”] or across all taxonomies [list-counts].


  1. Install the plugin as you would any other plugin

Contributors & Developers

“Count Shortcode” is open source software. The following people have contributed to this plugin.


Translate “Count Shortcode” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Added ability to display counts of all terms in a taxonomy, or across all taxonomies


  • Initial Release