Get the term list ordered by hierarchy

Content of the article

Sometimes there are cases when its necessary to get taxonomies links of post ranked in the hierarchy. WordPress has the function to get posts custom taxonomies links:

But: you cant get it by hierarchy! I had such a task. And I want to describe my decision of this task.
I wrote a little class:

Using of this php class is simple:


This php class is for replace WordPress function get_the_term_list when it is important to get ordered by hierarchy taxonomies terms links of a post.

Leave a Reply

Please Login to comment
0 Comment threads
0 Thread replies
Most reacted comment
Hottest comment thread
0 Comment authors
Recent comment authors
Notify of