Why does a custom post type need the ”hierarchical’ args setting?

When you have two content objects with a similar interface or shared properties, you have a good candidate for hierarchical post types.

Take places as an example (see this answer):

  • Asia
  • Europe
    • Germany
      • Berlin
    • Austria
      • Vienna

Each place has similar meta data: population, geo coordinates, spoken languages. You just can reuse the same interface.

Plus, if you create a separate custom post type for each kind of place you’ll run into WordPress’ missing post-to-post relationship table.

Leave a Comment