Title: Nested Categories not displaying &#8211; ?
Last modified: August 18, 2016

---

# Nested Categories not displaying – ?

 *  Resolved [wellofdreams](https://wordpress.org/support/users/wellofdreams/)
 * (@wellofdreams)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/nested-categories-not-displaying/)
 * Hi 🙂
 * When writing in my admin panel my nested categories appear alright; they are 
   arranged beneath their parent category and are indented slightly.
 * However on my main page the categories revert back to a simple alphabetical arrangement–
   not nested.
 * How do I make my categories appear nested on my main page?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/nested-categories-not-displaying/#post-278586)
 * What is the code you are using in your sidebar to display categories?
 *  [vaamyob](https://wordpress.org/support/users/vaamyob/)
 * (@vaamyob)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/nested-categories-not-displaying/#post-278838)
 * Try this:
 * `<?php wp_list_cats('hierarchical=true') ?>`
 * instead of
 * `<?php list_cats() ?>`
 * If you’re not crazy about making the change yourself, mail me your theme (or 
   tell me where I can download it) and I’ll make the change for you.
 * Check out my site to see it in action:
 * [http://www.xyooj.com/blog](http://www.xyooj.com/blog)
 *  Thread Starter [wellofdreams](https://wordpress.org/support/users/wellofdreams/)
 * (@wellofdreams)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/nested-categories-not-displaying/#post-278939)
 * I’ve put that in, but now I’ve ended up with them unevenly spaced – [http://canny-cat.com/](http://canny-cat.com/)–
   is that my css? *clueless*!
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/nested-categories-not-displaying/#post-278940)
 * Add this to your stylesheet:
    `#nav ul ul {margin: 0; padding-left: 7px;} (change
   the value – 7 – to whatever you like)
 *  Thread Starter [wellofdreams](https://wordpress.org/support/users/wellofdreams/)
 * (@wellofdreams)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/nested-categories-not-displaying/#post-278941)
 * Great, sorted 😀
 * Thanks guys 😀

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Nested Categories not displaying – ?’ is closed to new replies.

## Tags

 * [nested](https://wordpress.org/support/topic-tag/nested/)
 * [parent](https://wordpress.org/support/topic-tag/parent/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [wellofdreams](https://wordpress.org/support/users/wellofdreams/)
 * Last activity: [20 years, 6 months ago](https://wordpress.org/support/topic/nested-categories-not-displaying/#post-278941)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
