aguawebdesign
asked on
Wordpress - Get parent taxonomy name for a post
I have a custom post type called 'riders' and a custom taxonomy called 'regions'
A particular rider has a region of 'United States' - which has a parent of "North America.'
I can use get_the_terms() to retrieve the parent ID, but not the parent name. How can I get the parent name 'North America' for a given post?
A particular rider has a region of 'United States' - which has a parent of "North America.'
I can use get_the_terms() to retrieve the parent ID, but not the parent name. How can I get the parent name 'North America' for a given post?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.