WordPress.org

Ready to get started?Download WordPress

Forums

Listing of categories (2 posts)

  1. Lassefm
    Member
    Posted 5 years ago #

    I am using the Greydream theme, where the categories under each post is listed alphabetically instead of <parent category>, <child category>.

    For example, if I have a post in the parent category "TVs" and the child category "LCD", then it will look like this: "LCD", "TVs". I want the parent category to be listed first (TVs) and then the child category (LCD).

    The code looks something like this:

    <div class="post-footer">Category: <?php the_category(', ') ?>

    Can somebody please help?

  2. moshu
    Member
    Posted 5 years ago #

    What about using the proper parameters?
    Template_Tags/the_category#Parameters

Topic Closed

This topic has been closed to new replies.

About this Topic