• liam

    (@liam)


    I have an issue where the categories I have listed on my blog are not layered: I have sub-categories that are outputted to look as though they are on the same level as top-level categories.

    As you can see on my website http://www.liamgetreu.com, even though I’m using the following tag:

    <?php wp_list_cats(\’sort_column=name&children=1&hierarchical=1\’); ?>

    it doesn’t show up right.

    Does anyone have any ideas on how to fix it?

    Cheers,
    Liam.

Viewing 5 replies - 1 through 5 (of 5 total)
  • kingcosmonaut

    (@kingcosmonaut)

    As far as I know this is a WP bug, however it has been fixed.

    Anyway, use this:

    wp_list_cats('sort_column=name&hide_empty=0');

    Thread Starter liam

    (@liam)

    That worked great, thanks. Except I would like to hide categories that don’t have posts in them. Is it possible to do both (ie show layered categories and not show all categories)?

    Cheers,
    L.

    Thread Starter liam

    (@liam)

    *bump* Does anyone have any ideas on what’s going on here?

    Thread Starter liam

    (@liam)

    *bump* still no-one? I’d love an answer to this if anyone’s got one…

    Cheers,
    L.

    aetherfox

    (@aetherfox)

    Don’t bump your thread, it is annoying and will more likely put people off helping you.

    And look at the Codex. There is so much stuff there that I am sure you haven’t searched over.

    http://codex.wordpress.org/Template_Tags/list_cats

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

The topic ‘Categories issue’ is closed to new replies.