• brianlees

    (@brianlees)


    I’m VERY new to both PHP (I’m a ColdFusion guy) and WordPress. I am currently in the process of tweaking an existing theme out there and I have a question about the list_cats tag. I would like to have subcategories indented under their parents. Is there a way to do this? I noticed that even the default theme doesn’t do it.

    here is my test site if interested: http://www.kathiandbrian.com/blog

Viewing 6 replies - 1 through 6 (of 6 total)
  • moshu

    (@moshu)

    I don’t know of any other solution than the one described here

    Root

    (@root)

    This functionality now needs to be delivered at the tag level. Consult Codex possibly for the params ?

    Thread Starter brianlees

    (@brianlees)

    Well, I see that the Blix template has it. http://www.kingcosmonaut.de/blix/preview/ So, I think I’ll just take a look at that.

    BTW, I did peek at the Codex. Not very clear…or my head is not processing things that well today (I’m a bit tired). I wish the Codex had a few examples showing the code and the output.

    Thread Starter brianlees

    (@brianlees)

    Hmm….can you do the same thing with links?

    <?php wp_list_cats(); ?> is the php code you use. After this, you just have to edit some css. Add some left padding to ul ul ul.children.

    Root

    (@root)

    Isnt there a glitch in the default without editing the tag ? Or not?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Indented Sub-Categories with list_cats tag?’ is closed to new replies.