Is there any way that you can show a custom taxonomy's parent term and child of a post?
I'm currently using get_the_term_list()
to display the custom tax terms of the post.
The only problem is the order or arrangement of the terms, is alphabetical.
What I want is to display the parent term first before the child terms.
Is it possible to manipulate/customize the HTML tags of the output?
What I want to display is something like this:
- Parent Term
- Child Term 1
- Child Term 2