• Resolved iasupport

    (@iasupport)


    Hi

    I want to create a hierarchy where one post type is used as the parent for another, is that possible?

    For example

    Country is the parent post type and then town would be the child so

    England <- parent (post type of country)
    London <- Child (post type of town)
    Manchester <- Child (post type of town)
    USA <- parent (post type of country)
    New York <- Child (post type of town)
    Washington <- Child (post type of town)

    Is this possible?

    • This topic was modified 3 years, 7 months ago by iasupport.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not that I’ve ever seen, since so much of a permalink is important for determining what to query for. This sounds like it’d be better off being a hierarchical post type with the country being the parent post, and the cities being child posts, instead of each tier being its own post type.

Viewing 1 replies (of 1 total)

The topic ‘Hierarchy of different post types’ is closed to new replies.