WordPress.org

Ready to get started?Download WordPress

Forums

Walking up Custom Taxonomy hierarchy (3 posts)

  1. tiptap
    Member
    Posted 3 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:

    Asia
    - 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

    cheers

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

  3. tiptap
    Member
    Posted 3 years ago #

    great ill give those a shot thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic