Additional fields for taxonomies?
Say I’ve got a Post Type that I created called Movies. It has a taxonomy I created called Actors.
I want to associate additional fields with Actors. So if I assign Tom Cruise to this taxonomy, and it hasn’t previously been added, then there are fields that I fill in for it. For example, “male,” “http://www.tomcruise.com/,” “Syracuse, New York,” “47,” etc.
Those additional fields would be standard across that taxonomy. There also needs to be a way of editing existing fields, so I could update if the website’s URL changes, for instance.
There are two key details that complicate this:
- These fields need to be set within the WordPress UI, not in the template files.
- It’s not enough to simply put “47” as a child taxonomy of “Tom Cruise” and call it a day, given that these different fields will be displaying differently, so it’s not just enough to output the text of all child elements.
- The topic ‘Additional fields for taxonomies?’ is closed to new replies.