I have one problem with my website, I cannot figure how to sort categories when I am querying them.
<?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?