• I’m trying to display an hierarchical listing of my categories but I can’t figure out how to do this. I’ve been playing with the parameters but it doesn’t work.

    Currentlly it looks like this: <?php wp_list_cats(‘children=1&optioncount=1&recurse=0’); ?>
    Any suggestions for how I can do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter catowner

    (@catowner)

    Yes, and as far as I understand the parameters above should make an hierarchical listing but …

    The very code works for me. What is it doing that you think it shouldn’t? Or what isn’t it doing you think it should?

    The reason I ask, is that if it’s just displaying what looks like a flat list, it could be a CSS issue. Take a look at the HTML code your browser gets and see if you really do/don’t have nested lists.

    Thread Starter catowner

    (@catowner)

    I just checked and the HTML code only contains the categories that don’t have any subitems. So apparently some kind of filtering of the subject is being done … ahhhh …. the solution is the ‘hide_empty’ option. Since my top-level categories are empty they, including the children, are hidden.

    Now it works.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hierarchical categories’ is closed to new replies.