Hey, this one has me truly stumped!
I have a custom post type ‘Stores’ which has a custom taxonomy ‘Store Location’
‘Store location’ is a hierarchy of places, ie:
— Chang Mai
When I create new ‘store’ I pick its ‘store location’ (in this case sathon)
When I come to display that post on the front end I want to display the hierarchy including all its parents ie;
Asia > thailand > bangkok > sathon
I cant for the life of me work out how to walk through the tree backwards.
Any help appreciated, its had me stumped for aggggges
- The topic ‘Walking up Custom Taxonomy hierarchy’ is closed to new replies.