Walking up Custom Taxonomy hierarchy (3 posts)

  1. tiptap
    Posted 5 years ago #

    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:

    - Thailand
    -- Bangkok
    --- Sathon
    -- 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


  2. Rev. Voodoo
    Posted 5 years ago #

  3. tiptap
    Posted 5 years ago #

    great ill give those a shot thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic