# 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:** 2

<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, 12:21pm UTC](https://meta.discourse.org/t/only-a-few-categories-showing-up-in-site-json-when-max-category-nesting-3/372249/2 "2025-06-30T12:21:55Z")

</div>

I manually updated the `plugin-utilities.php` file to read from `categories.json` and not `site.json`, and then updated to make sure it read the right json object (in `site.json`, categories is 1st level, and is 2nd level in `categories.json`).

However, I have 49 categories and only 33 are showing up in the `categories.json` as well.

So for the time being, I just manually added the one category that I wanted that was missing.

Still not sure if this is a `max_category_nesting=3` problem, but even if it’s not, I think going forward wp-discourse polling the categories from `categories.json` may be smoother.

---

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