plugin-icon

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
評價
4/5
版本
2.0
活躍安裝總數
10
最近更新:
Sep 28, 2011

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

免費使用Business方案
目前已測試版本
WordPress 3.2.1
此外掛程式已可供下載,並可用於你 系統。