Forums

[resolved] Showing Sub categories in a row (5 posts)

  1. sribharath
    Member
    Posted 2 months ago #

    Hello friends ,

    I want to show all the subcategories on the category page below the recent posts in a row and not in a column.

    If u can see this page once at

    http://karomasti.com/telugu-cinema/category/telugu-songs/

    I have managed to show the subcategories below the recent posts.

    what i want to ask is , i want to show the subcategories in alphabetical sorting , as u can see it is sorted by id

    and

    i want to show them in a row instead of column some thing like A | B| C| and so on and if possible in two rows each of some 13 subcategories

    Please any one help me out with this...

    Thanks in advance

    with regards

    sribharath

  2. Shane G
    Member
    Posted 2 months ago #

    Hi,

    Refer this article:

    http://codex.wordpress.org/Template_Tags/wp_list_categories

    Thanks,

    Shane G.

  3. sribharath
    Member
    Posted 2 months ago #

    i have seen and learnt to show in alphabetical order, but how to show in a row

    thanks shane g

  4. sribharath
    Member
    Posted 2 months ago #

    any one pls................?

  5. esmi
    Member
    Posted 2 months ago #

    wp-list_categories will work if you use it with the child_of parameter:

    <ul class="cat-list">
    <?php wp_list_categories('title_li=&child_of='.$cat);?>
    </ul>

    Then in your stylesheet, use something like:

    .cat-list li {
    list-style:none;
    display:inline;
    }

Reply

You must log in to post.

About this Topic