WordPress.org

Ready to get started?Download WordPress

Forums

reverse order of category and child/subcategory (1 post)

  1. saucemaster
    Member
    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.