Isolate parent and child terms
Question
Is there a simple way to get the parent and child terms isolated in a variable on a custom post?
Right now the taxonomy hierarchy looks like:
– Country (parent)
– City (child)
What I want is to get the parent term in a $parent and child in $child variable.
0
custom-post-types, custom-taxonomy, taxonomy
3 years
2019-10-31T08:51:08-05:00
2019-10-31T08:51:08-05:00 0 Answers
85 views
0
Leave an answer