# 分类页面上的主题总数/每月主题数

**URL:** <https://meta.discourse.org/t/total-number-of-topics-topics-par-month-on-the-category-page/211134>\
**Category:** Product Support\
**Created:** [2021 年12 月 5 日 11:47 UTC](https://meta.discourse.org/t/total-number-of-topics-topics-par-month-on-the-category-page/211134 "2021-12-05T11:47:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![lcestou](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lcestou/32/148373_2.png) [@lcestou](https://meta.discourse.org/u/lcestou)\
发布日期： [2023 年2 月 18 日 09:07 UTC](https://meta.discourse.org/t/total-number-of-topics-topics-par-month-on-the-category-page/211134/3 "2023-02-18T09:07:03Z")

</div>

感谢您提供的代码，但它似乎只能在嵌套级别最多为 `max_category_nesting = 2` 的类别上运行。

目前此代码适用于：

父级  
父级 \> 子级

对我来说，以下情况不起作用：

祖父级 \> 父级 \> 子级

它并没有破坏任何东西，似乎只是应用于默认嵌套（2）的类别。

有没有办法修改它，使其也能用于 `max_category_nesting = 3`？

谢谢！

---

_[View the full topic](https://meta.discourse.org/t/total-number-of-topics-topics-par-month-on-the-category-page/211134)._
