跳到内容

Count Posts in a Category, Tag, or Custom Taxonomy

v3.1

Luke Mlsna · 2011年12月6日 上架

Adds a custom shortcode that returns the number of posts in a category, tag, or custom taxonomy. Accepts a slug (default), ID, or name as input and wo …

正在使用
100+
评分
5.0 / 5
累计下载
9,744
最近更新
2013年1月1日
2 条评价需要 WordPress 2.8+已测试到 3.5.2

贡献者

截图

Some examples of what you can do with the plugin (in the body of a post).
Some examples of what you can do with the plugin (in the body of a post).
The code that created the output in the picture above.
The code that created the output in the picture above.

This plugin allows you to dynamically return the number of posts in a particular category, tag, or custom taxonomy. Inserting [cat_count value="category-slug"] in a post or page, or <?php do_shortcode('cat_count slug="category-slug" '); ?> anywhere in WordPress’ code will return the number of posts in that particular category.

Useful for creating dynamic table of contents pages, keeping track of post stats, general bragging, or any place where keeping a running tally might be desirable.

Readme Generator

Support

Donations

Donations are graciously accepted to support the continued development and maintenance of this and other plugins. We currently accept Paypal and kind words.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums