I have entries that are categorized by City and State. ‘State’ is the parent and ‘City’ is the child. When it appears in the entry, the parent comes before the child.
Is there a way I can reverse the order of how the categories are listed so that the child comes before the parent? Currently I am calling the categories up with:
<?php the_category(', '); ?>
for example, in this post, you will see below the title that it says “Washington, Seattle”. I would like to switch the order to “Seattle, Washington”.
Thanks in advance.
- The topic ‘reverse order of category and child/subcategory’ is closed to new replies.