Title: Count Shortcode
Author: Federal Communications Commission
Published: <strong>2011 年 7 月 13 日</strong>
Last modified: 2011 年 9 月 28 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/count-shortcode.svg)

# Count Shortcode

 作者：[Federal Communications Commission](https://profiles.wordpress.org/fcc/)

[下载](https://downloads.wordpress.org/plugin/count-shortcode.zip)

 * [详情](https://cn.wordpress.org/plugins/count-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/count-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/count-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/count-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/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.

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

## 安装

 1. Install the plugin as you would any other plugin

## 评价

此插件暂无评价。

## 贡献者及开发者

「Count Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Federal Communications Commission ](https://profiles.wordpress.org/fcc/)

[帮助将「Count Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/count-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/count-shortcode/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/count-shortcode/)，或通过[RSS](https://plugins.trac.wordpress.org/log/count-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/count-shortcode/)。

## 更新日志

#### 2.0

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

#### 1.0

 * Initial Release

## 额外信息

 *  版本 **2.0**
 *  最后更新：**15 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.2 或更高版本 **
 *  已测试的最高版本为 **3.2.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/count-shortcode/)
 * 标签
 * [counting](https://cn.wordpress.org/plugins/tags/counting/)[data](https://cn.wordpress.org/plugins/tags/data/)
   [queries](https://cn.wordpress.org/plugins/tags/queries/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [statistics](https://cn.wordpress.org/plugins/tags/statistics/)
 *  [高级视图](https://cn.wordpress.org/plugins/count-shortcode/advanced/)

## 评级

 4 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/count-shortcode/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/count-shortcode/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/count-shortcode/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/count-shortcode/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/count-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/count-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/count-shortcode/reviews/)

## 贡献者

 *   [ Federal Communications Commission ](https://profiles.wordpress.org/fcc/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/count-shortcode/)