# Displaying subcategories

**URL:** https://meta.discourse.org/t/displaying-subcategories/355892
**Category:** Support
**Created:** [March 5, 2025, 5:20pm UTC](https://meta.discourse.org/t/displaying-subcategories/355892 "2025-03-05T17:20:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![szogun](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/szogun/32/487466_2.png) [@szogun](https://meta.discourse.org/u/szogun)
#### Post date: [March 5, 2025, 5:20pm UTC](https://meta.discourse.org/t/displaying-subcategories/355892/1 "2025-03-05T17:20:14Z")

</div>

Hey, I’m new to using Discourse, and I have a question. Is it possible that after creating a category, e.g., “Announcements,” the subcategories within it are displayed directly when entering it?

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [March 5, 2025, 5:54pm UTC](https://meta.discourse.org/t/displaying-subcategories/355892/2 "2025-03-05T17:54:34Z")

</div>

Hello @szogun 👋

You can achieve this in the category settings. Ensure that the box in the image below is checked. Then choose a ‘subcategory list style’ of your liking.

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/2/2/822ec8053c8908a26adde93fdfb921b32ea8bd0d.png)

---

<div class="post-metadata">

### Author: ![szogun](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/szogun/32/487466_2.png) [@szogun](https://meta.discourse.org/u/szogun)
#### Post date: [March 5, 2025, 6:07pm UTC](https://meta.discourse.org/t/displaying-subcategories/355892/3 "2025-03-05T18:07:37Z")

</div>

And one more question, is there any way to get around this An error occurred: You can’t nest a subcategory under another

That is, you have Category - subcategory- again subcategory

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [March 5, 2025, 6:39pm UTC](https://meta.discourse.org/t/displaying-subcategories/355892/4 "2025-03-05T18:39:15Z")

</div>

There is a a way around that - its a hidden site setting you can enable if you are self hosted. If you are a Discourse customer please contact [team@discourse.org](mailto:team@discourse.org). Note that the max value is 3.

`max_category_nesting`

> [@Using Hidden Site Settings](https://meta.discourse.org/t/using-hidden-site-settings/308773):
>
> bookmark This is a #how-to guide about Hidden Site Settings, how to enable them, and why you might want to adjust them. person_raising_hand Required user level: Administrator warning Important: Console access is required for some steps. In Discourse, hidden site settings refer to configuration options that are not readily visible or accessible through the standard admin dashboard interface. These settings are part of the backend configuration that can control various advanced or potent…

> [@Sub-sub-categories](https://meta.discourse.org/t/sub-sub-categories/139309/7):
>
> Quick guide to set it from 2 (default) to 3 via the console: cd /var/discourse/ ./launcher enter app rails c read current value: [1] pry(main)\> SiteSetting.max\_category\_nesting =\> 2 write new value: [2] pry(main)\> SiteSetting.max\_category\_nesting = 3 =\> 3

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 4, 2025, 6:40pm UTC](https://meta.discourse.org/t/displaying-subcategories/355892/5 "2025-04-04T18:40:11Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
