brianlees
Member
Posted 7 years ago #
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
I don't know of any other solution than the one described here
This functionality now needs to be delivered at the tag level. Consult Codex possibly for the params ?
brianlees
Member
Posted 7 years ago #
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.
brianlees
Member
Posted 7 years ago #
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.
Isnt there a glitch in the default without editing the tag ? Or not?