Forums

Formatting Cat/Subcat List in Sidebar in v1.5 (3 posts)

  1. krazyplaya
    Member
    Posted 4 years ago #

    Hey everyone,

    I found one article that touched briefly on the formatting of the categories and subcategories, but it was in reference to 1.1, I believe.

    I'm trying to find a way for my sidebar to format the category as such:
    Parent Category 1
    (space/tab/whatever) Subcategory 1.1
    (space/tab/whatever) Subcategory 1.1
    Parent Category 2
    (space/tab/whatever) Subcategory 2.1
    (space/tab/whatever) Subcategory 2.2

    Right now, everything is all flushed left with no distinguishing between the parent and sub categories.

    Appreciate your help.

    Brian

  2. KarlB
    Member
    Posted 4 years ago #

    I asked about this a year ago and never got a reply and forgot all about it :)

    I too would like to know :)

    Thanks

  3. Minna
    Member
    Posted 4 years ago #

    Er... there should be a parametre to allow hierarchical order in category list. And actually, I'm using just wp_list_cats and it lists them hierarchically. You can hide the list bullets so it looks like a tab/space and you can adjust the indentation by either left-padding or left-margin (I forget..).

    I checked the Codex and the hierarchical formatting is the default. You just need <ul> tags around the function call because it only generates list items

Topic Closed

This topic has been closed to new replies.

About this Topic