Tagged Questions
0
votes
1answer
315 views
How to get the top most term (top ancestor) of a custom taxonomy child term?
I need to get the topmost term (top level ancestor) of a taxonomy term.
Suppose the following term hierarchy:
North America
United States
New York
New York ...
0
votes
0answers
63 views
How to get the hierarchy position of a taxonomy term? (how many children after / how many ancestors before)
I have a taxonomy "location"
In this taxonomy I list locations, hierarchically, from country to state to city. For example, consider the following terms nested like so:
1. European Union
...
0
votes
1answer
1k views
Display Child Categories of Current Post ID
I'm starting to love this place more and more, super helpful!
Anyway, todays dilemma is as such:
I want to display as a list the child terms only, of a specific parent term, of a custom taxonomy, ...
0
votes
1answer
534 views
Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term
Say, for example, I have the following custom taxonomy:
Term 1
Term 1.1
Term 1.2
Term 1.2.1
Term 1.2.2
Term 1.3
Term 2
Term 2.1
How can I get the children terms of Term 1, ...