WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Categories and sub categories (3 posts)

  1. hasanali00
    Member
    Posted 8 years ago #

    I have three categories: Main Category, Sub Cat1 and Sub Cat2. Main Category is the parent of Sub Cat1 and Sub Cat2.

    On my blog, I want the categories to appear as following:
    Main Category,
    - Sub Cat1
    - Sub Cat2

    However, the categories are coming in alphabetical order as:
    Main Category
    Sub Cat1
    Sub Cat2

    How can I make them appear as if Sub Cat1 & Sub Cat2 are child categories of Main Category

    regards

  2. tomhanna
    Member
    Posted 8 years ago #

    Depends which Template Tags you use. If you use wp_list_cats you'd set hierarchical=TRUE

    "hierarchical - Displays the children categories in a hierarchical order under its category parent"

  3. hasanali00
    Member
    Posted 8 years ago #

    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.