• i am running a wordpress site located here.

    It shows the categories. What i want it to display is the subcategories aswell under it, and the sub sub categories aswell. Like following

    Category
    -Subcategory
    –Subcategory

    any solution? thanks

Viewing 15 replies - 1 through 15 (of 15 total)
  • Like here?
    Just use the proper template tag and style it.
    Template_Tags#Category_tags

    Thread Starter ggnetworks

    (@ggnetworks)

    can u tell me where exactly in my category template to add those template tags? im bit confused.

    Thread Starter ggnetworks

    (@ggnetworks)

    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.

    Thread Starter ggnetworks

    (@ggnetworks)

    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:

    • <h2>Categories</h2>
      <?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).

    Thread Starter ggnetworks

    (@ggnetworks)

    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.

    Thread Starter ggnetworks

    (@ggnetworks)

    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.

    Thread Starter ggnetworks

    (@ggnetworks)

    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)

    Thread Starter ggnetworks

    (@ggnetworks)

    Well i am using the default one: http://pakstop.com/info/wp-content/themes/default/screenshot.png

    and it cannot do it.

    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.

    Thread Starter ggnetworks

    (@ggnetworks)

    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!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘how to display subcategories on main page under categories’ is closed to new replies.