Support » Fixing WordPress » wp_list_cats: children won’t display in Category list

  • autumneve


    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 ( 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.)


Viewing 2 replies - 1 through 2 (of 2 total)
  • autumneve


    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

    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_list_cats: children won’t display in Category list’ is closed to new replies.