Listing of categories (2 posts)

  1. Lassefm
    Posted 6 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
    Posted 6 years ago #

    What about using the proper parameters?

Topic Closed

This topic has been closed to new replies.

About this Topic