WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Howto query taxonomy term level? (3 posts)

  1. 2046
    Member
    Posted 3 years ago #

    Hello

    Has anybody an idea how to query certain term level in the taxonomy hierarchy?

    example:
    taxonomy - place
    > terms - US, GB, ...(menu item - state)
    > > terms - NY, London, ..(menu item - city)
    > > > terms - Rockefeller, South, ..(menu item - street)

    the goal:
    What I want is to have a menu with items: State, City, Street. When you click for example on the "City" item, then it supposed to query list of all items in the second level from the "taxonomy place" hierarchy.

    Secondly, how can I find the parent term? Say, I'm in the London query, and want to know under what state it belongs to.

    thanks in advance 2046

  2. 2046
    Member
    Posted 3 years ago #

    I'll most likely use the get_the_term_list() for the actual taxonomy

  3. 2046
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic