[wordpress插件] Count Posts in a Category, Tag, or Custom Taxonomy计算类别,标签或自定义分类中的帖子

wordpress 插件 文章 2020-04-03 10:00 415 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

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

在帖子或页面中插入 [cat_count value =“ category-slug”] ,或 <?php do_shortcode('cat_count slug =“ category-slug”');

?> anywhere in WordPress’ code will return the number of posts in that particular category.

WordPress代码中任何地方的?> 都将返回该特定类别中的帖子数量。

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

自述生成器

安装步骤

    1. Download the latest zip file and extract the post-count-per-category directory.
    2. 下载最新的zip文件,并提取每个类别的帖子计数目录。

    3. Upload this directory inside your /wp-content/plugins/ directory.
    4. 将此目录上传到您的 / wp-content / plugins / 目录中。

    5. Activate ‘Post Count per Category’ on the ‘Plugins’ menu in WordPress.
    6. 在WordPress的“插件”菜单上激活“每个类别的帖子数”。

    7. Insert in a post or page: [cat_count slug="category-slug"] to count a category, [tag_count slug="tag-slug"] to

    8. 在帖子或页面中插入: [cat_count slug =“ category-slug”] 来计算类别, [tag_count slug =“ tag-slug”]

      count a tag, or [tax_count tax=”taxonomy-name” slug=”taxonomy-slug”] to count a custom taxonomy.

      计数标签,或[tax_count tax =” taxonomy-name” slug =“ taxonomy-slug”]计数自定义分类法。

      (Replacing the slugs in quotes with an acutal slug name) to return the number of posts in that category, tag or custom taxonomy.

    9. (将引号中的子弹替换为实际的子弹名称),以返回该类别,标签或自定义分类法中的帖子数。

下载地址
https://downloads.wordpress.org/plugin/count-posts-in-a-category.3.1.zip
-EOF-

AI助手支持GPT4.0