# Only a few categories showing up in site.json when max\_category\_nesting = 3

**URL:** <https://meta.discourse.org/t/only-a-few-categories-showing-up-in-site-json-when-max-category-nesting-3/372249>\
**Category:** Bug\
**Tags:** wp-discourse, rest-api\
**Created:** [June 30, 2025, 9:40am UTC](https://meta.discourse.org/t/only-a-few-categories-showing-up-in-site-json-when-max-category-nesting-3/372249 "2025-06-30T09:40:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jimkleiber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimkleiber/32/121814_2.png) [@jimkleiber](https://meta.discourse.org/u/jimkleiber)\
**Post date:** [June 30, 2025, 9:40am UTC](https://meta.discourse.org/t/only-a-few-categories-showing-up-in-site-json-when-max-category-nesting-3/372249/1 "2025-06-30T09:40:23Z")

</div>

Since I switched to `max_category_nesting = 3`, I noticed that my WP-Discourse is no longer pulling in the full list of categories. If I visit `/site.json`, I can only see 5 categories. If I visit `/categories.json`, I think I see all the 1st- and 2nd-level categories, with the 3rd-level category IDs listed under the 2nd-level categories. However, WP-Discourse populates its list of categories using `/site.json`.

Also, when I type `/site.json` into a window in which I’m logged in as admin, it only shows 5 categories. If I do it in an incognito window, it shows 26. In admin logged in window with `/categories.json`, it shows 33.

Any idea on what might be happening?

---

_[View the full topic](https://meta.discourse.org/t/only-a-few-categories-showing-up-in-site-json-when-max-category-nesting-3/372249)._
