Tagged Questions
0
votes
1answer
135 views
Get object terms with no children?
Others have asked how to only get parent terms, but I need to get the deepest term for the post of a specific taxonomy.
Is there a way I can only get terms where the number of children = 0?
3
votes
2answers
738 views
wp_get_object_terms() to get a list of all the terms attached to all the posts in the current query
How can I use wp_get_object_terms() to get a list of all the terms attached to all posts in the current query?
For example, for the current query I want to get an array of the terms from the "Alfa" ...