Forums

another "Indent Categories" Thread for WP 2.0 (7 posts)

  1. ccrob
    Member
    Posted 5 years ago #

    Hi all, I've scoured the codex and the support forums but cannot find the answer to my problem. I have categories with sub-categories defined for my theme inthe WP Dashboard.

    However, they display all as top level categories in no particular order. I want to see the sub categories indented underneath their parents, like you can see on this site:

    http://www.viper007bond.com/

    In my Sidebar.php, I've defined this:

    <?php wp_list_cats('sort_column=name&optioncount=1&hide_empty=0&hierarchical=1'); ?>

    But it has NO affect on the site. I am out of ideas. Any help is GREATLY appreciated.

    PS-I have not changed anything in my CSS. Is that the problem?

  2. Chris_K
    Member
    Posted 5 years ago #

    The CSS may indeed be the issue. Do you have an URL we could peek at?

  3. ccrob
    Member
    Posted 5 years ago #

    Sure! Here it is:

    http://www.candy-critic.com

  4. Chris_K
    Member
    Posted 5 years ago #

    Before we get too gung-ho here... I see 3 categories in your sidebar. Chocolate Bars, Gum and other. What's the hierarchy?

  5. ccrob
    Member
    Posted 5 years ago #

    It's very simple right now. Like so:

    *Chocolate Bars
    *Gum
    *Mint
    *Fruit
    *Other
    *Mints
    *Everything Else

  6. Chris_K
    Member
    Posted 5 years ago #

    Ok. One of us is confused. :-)

    I see only 1 level of hierarchy there.

    Just for grins, make a category called "Butterfinger" and set Chocolate Bars to be its parent. Now you'd have some hierarchy. If you created a test post and gave it the butterfinger category, you'd see butterfinger in your sidebar -- and it would be indented.

  7. Pipedreamergrey
    Member
    Posted 5 years ago #

    This problem could have been resolved using the Category Order 1.9.5 plug-in from http://www.coppit.org/code/

Topic Closed

This topic has been closed to new replies.

About this Topic