# 在每个类别/标签旁边添加帖子数量

**URL:** <https://meta.discourse.org/t/add-number-of-posts-next-to-each-category-tag/268619>\
**Category:** Development\
**Tags:** sidebar\
**Created:** [2023年六月16日 13:02 UTC](https://meta.discourse.org/t/add-number-of-posts-next-to-each-category-tag/268619 "2023-06-16T13:02:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OsaIsacson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osaisacson/32/263464_2.png) [@OsaIsacson](https://meta.discourse.org/u/OsaIsacson)\
**Post date:** [2023年六月16日 13:02 UTC](https://meta.discourse.org/t/add-number-of-posts-next-to-each-category-tag/268619/1 "2023-06-16T13:02:56Z")

</div>

我想获取每个类别/标签下帖子的数量变量。

Docs 目前正在这样做：

 ![Screenshot 2023-06-16 at 14.58.52](https://global.discourse-cdn.com/meta/original/4X/0/8/4/0843d1de9f2582711d0158e8f207f2b4cd488b2a.jpeg)

…但我是否需要进入 Docs 仓库并搜寻那段代码？或者这个变量或者（敢于梦想）设置已经存在了？

谢谢。
