WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Nested Categories not displaying - ? (6 posts)

  1. wellofdreams
    Member
    Posted 8 years ago #

    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?

  2. moshu
    Member
    Posted 8 years ago #

    What is the code you are using in your sidebar to display categories?

  3. VaamYob
    Member
    Posted 8 years ago #

    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

  4. wellofdreams
    Member
    Posted 8 years ago #

    I've put that in, but now I've ended up with them unevenly spaced - http://canny-cat.com/ - is that my css? *clueless*!

  5. moshu
    Member
    Posted 8 years ago #

    Add this to your stylesheet:
    #nav ul ul {margin: 0;
    padding-left: 7px;}

    (change the value - 7 - to whatever you like)

  6. wellofdreams
    Member
    Posted 8 years ago #

    Great, sorted :D

    Thanks guys :D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags