• tlsceo

    (@tlsceo)


    Hi everyone, I’ve searched for a while now and I cant seem to find a way to accomplish this, so here it goes.

    I am using Daiko’s text widget in my side bar to display only certain categories and sub-categories. My only real problem is how they are being displayed. Right now it looks like this.

    Cat 1
    Sub Cat 1
    Cat 2
    Sub Cat 2
    Cat 3
    Sub Cat 3

    What I would like it to look like is this

    Cat 1
    Sub Cat 1
    Cat 2
    Sub Cat 2
    Cat 3
    Sub Cat 3

    The tabbing becomes important because each category is a state, and each sub-cat is a city within that state.

    The code I am using within the widget is below, is there a paramater that will tab all sub-cats?

    <?php
    wp_list_cats("optioncount=$c&hierarchical=$h&depth=-1&hide_empty=$e&exclude=1,2,3,4&sort_column=$s");
    ?>

    Thanks in advance for any help.

Viewing 1 replies (of 1 total)
  • Thread Starter tlsceo

    (@tlsceo)

    I am not seeing a way to edit my above post, but the second set of cat/subs should have tabs in for the sub-categories. I didnt realize the formatting would change when I posted.

Viewing 1 replies (of 1 total)

The topic ‘Sub Category Display in sidebar’ is closed to new replies.