wp_list_cats: children won't display in Category list (3 posts)

  1. autumneve
    Posted 9 years ago #

    WordPress 2.0.2.

    I have this in my sidebar.php file:

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

    The child-categories don't display in the category list at all, only the parents. What's wrong here?

    Alternatively, if anyone knows of a way to get the Collapsing Category Menu (http://sporkfancier.com/collapsing-category-menus-plugin) to display the post count after each category (a la the optioncount attribute in wp_list_cats), that would be cool too. (This actually displays the parents and children correctly, but I'd like to keep the postcount numbers if at all possible.)


  2. autumneve
    Posted 9 years ago #

    No one? Really?

    As further info, most of the child categories are NOT empty, but none display.

    Also, I have the category heirarchy set up like:

    Parent I
    -child 1
    --child a
    --child b
    --child c
    --child d
    -child 2
    -child 3
    Parent II
    Parent III
    Parent IV

  3. jdarby
    Posted 8 years ago #

    i am having a similar problem but using the Fold Category List plugin which replaces the wp_list_cats function and adds a bit to it. my code is lookin like this:

    } elseif (is_category(44)) {
    // we're looking at a single category view, show relevant parent/child cats
    echo "<ul>";
    echo "</ul>";

    parent cats display on the home page, children display when you click a parent, but if there is a child of a child cat, it doesnt display, and thats the current problem im dealing with. ill let ya know if i find something, hopefully youve already found your answer!

Topic Closed

This topic has been closed to new replies.

About this Topic