Support » Fixing WordPress » How to order categories and subcategories

  • 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?


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to order categories and subcategories’ is closed to new replies.