Like here?
Just use the proper template tag and style it.
Template_Tags#Category_tags
can u tell me where exactly in my category template to add those template tags? im bit confused.
where exactly and which template do i edit
It is in the sidebar.php
of your theme. At least that’s how mine is.
And, BTW, you need only one (1) template tag – the one that does what you want to achieve.
oh yeah i just found categories there… well now i need to kow which tag should i add there in categories?
please give me the tag here… should i paste the tag in categories code then? i mean in this one:
<?php wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=0’); ?>
pls lemme know thx..
Make this:
hierarchical=0
into
hierarchical=1
Everything is there on the Codex page: Template_Tags/wp_list_cats#Parameters
or you can simply delete the &hierarchical=0
part – it default to yes (=1) if you don’t tell it “NO”, as you did by using the 0(zero).
well i did change it to “1” and it didnt work… I did even Delete &hierarchical=0 still not worked! whats wrong?? and im using Version 2.0 so whats the problem???
I don’t know. Seemingly you edited too much a bit… and screwed up the sidebar.
On the other hand I guess the hierarchical structure is not styled in the default theme.
In my very first reply I said: …and style it. Meaning you will have to add stuff to your stylesheet.
Or choose a theme that already does it for you.
Sorry but how do i style it?
here is my sidebar code: http://www.mypastebin.com/?code=6358418
You do the “styling” in the CSS file – style.css in your theme folder.
If you don’t know how, download atheme (or 2, 3…X) that has this feature and dissect its stylesheet until you figure it out.
Hint: it’s about styling nested lists. Google for it and you’ll find many articles.
can u give me name of a theme that has this feature.
Even the Classic does it – it comes with the standard WP package.
(On the link I gave in my first post to my dev blog you can switch the themes and see how it works in 3 out of 4)
Well, then you have to re-write the stylesheet because the default is the only one of the four displayed in my blog that does NOT have this feature.
I told you it doesn’t work with default – here.
hmm welll i will give u access to my site… could u please fix it for me then? that will help me and urs time alot… please!