Register a pre defined tree of taxonomies

I want to use a certain defined tree of taxonomies like this:

  • news
  • stories
    • travel
    • people
    • nature
  • videos

but I want to have this hierarchy set in the code and not created via admin interface. The user should only be able to add new posts linking them to the correct taxonomy.

Read More

I have found documentation about how to register a taxonomy which allows children, but not about how to define a full tree.

Is it possible? If so, how?

Related posts

Leave a Reply

1 comment