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?
- The topic ‘Listing of categories’ is closed to new replies.