This link tells me how to display categories assigned to a post.
How would I modify this code to display the terms from a custom taxonomy assigned to a post in hierarchical order?
This link tells me how to display categories assigned to a post.
How would I modify this code to display the terms from a custom taxonomy assigned to a post in hierarchical order?
Comments are closed.
It depends of what you are trying to do exactly. But if you want the same functionality of the question you linked, you can use the same function but passing your custom taxonomy to the function. Here all the arguments you can pass to
wp_list_categories()
and is defulat values:The above code will generate a list in hierarchical order with all the terms from the specified taxonomy, not only the associated to the current post. But we can limit the included terms using the
inlcude
argument: