WordPress: How to display categories in hierarchical order

The most recent versions of WordPress include the possibility to organize taxonomies in hierarchical order. Categories are by default hierarchical taxonomies, while Tags are not (they are non-hierarchical or multi-faceted).

When WordPress displays such categories with the post, by default sorts them in alphabetical order. However it would be more logical to have them arranged in a hierarchical way, which is exactly how they were defined. This post shows how to do it.

Continue Reading