WordPress.org

Ready to get started?Download WordPress

Forums

How to order categories and subcategories (2 posts)

  1. ringishpil
    Member
    Posted 2 years ago #

    Hi ninjas,

    I have one problem with my website, I cannot figure how to sort categories when I am querying them.

    I use <?php the_category(' \ '); ?> to get the categories, but what wordpress seams to do it returns the categories alphabetically.

    The thing is I have one parent category "inspiration" and a child category "art" lets say. When wordpress list it lists like art \ inspiration , but the thing is I always want the parent to go first than the child categories.

    How should I do that?

    Thanks,
    M

  2. ringishpil
    Member
    Posted 2 years ago #

    Anyone?

    Bump :)

Topic Closed

This topic has been closed to new replies.

About this Topic