• Hello,
    I can’t get subcategories to show using the list_cats tag.
    <?php list_cats(0, ”, ‘name’, ‘desc’, ”, 1, 0, 1, 1, 1, 1, ”,”,”,”,”) ?>
    Other settings seem to work except children.
    I’ve tried using wp_lists_cats(children=”1″), but that doesn’t work either.

    Is there some sort of issue I’m not aware of?
    (I had previously set categories as children in the option settings, i t worked fine in wp1.2)

    and have read and followed instructions:
    wp_list_cats
    Styling lists with CSS
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • This is what I have, though the example has line breaks so you can see it better in this post:

    <ul>
    <?php wp_list_cats('sort_column=name
    &optioncount=0&list=1&use_desc_for_title=1
    &child_of=4'); ?>
    </ul>

    This gives me a sorted list by name, without the count of posts in each category, shows it in a list, uses the description for title, and shows all the children of category 4.

    If you want specific children to show up, you have to list their categories, like child_of=4, 2, 16, 18. This might help you.

    I have a stupid question, but are your subcategories empty? Because that might be why they aren’t showing up.

    Thread Starter Esther

    (@esther)

    subcategories are not empty, they just show as if they were parent categories…
    I’m going to try out Lorelle’s sugestion see what happens…

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

The topic ‘Subcategories using list_cats’ is closed to new replies.