WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Grouping categories (3 posts)

  1. rhody
    Member
    Posted 5 years ago #

    Hello,

    I have 5 categories in my blog and divided them into two groups. So there are 3 categories under the first group and the rest two cats under the second group. It was done easily using the hierarchy of the categories. Let's say as following.

    US Cities - NYC
    - DC
    - LA

    EU Cities - Paris
    - London

    Now I want to arrange the two groups in separated panes in my blog. Refering the example above, I would like to place the first group (US Cities) on the left side of my website while the second one (EU Cities) sits on the right pane.

    Please teach me how to enable the "severance." Since I am a newbie to the wordpress, detailed explanation would be highly appreciated.

    Thank you.

  2. MichaelH
    Member
    Posted 5 years ago #

    Typically categories are listed using the template tag, wp_list_categories(). So you just need to use two occurences of wp_list_categories with the appropriate include= or exclude= parameter.

  3. rhody
    Member
    Posted 5 years ago #

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic