Count Shortcode

Count Shortcode Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 2,066 downloads
Count Shortcode Icon

Try plugin: Count Shortcode

We'll create fresh WordPress site with Count Shortcode installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About 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

0


1


0


0


0

updated: 13 years ago
since: 13 years ago

Description

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.

Example

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 yoursite.com/?color=red (which may rewrite depending on your permalink structure)

Usage

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].