add custom field checkboxes and text input options to a taxonomy
-
I’ve looked in the Codex and it appears that there are now functions to help add custom meta fields to taxonomy terms (add_term_meta). Unfortunately, I’m having trouble finding examples/tutorials that really seem to demonstrate adding checkbox or regular text input options. I found a tutorial on adding a color hex code to taxonomy terms, but it’s been a while since I’ve played around with WordPress functions and I’m having trouble parsing it for my use.
I have two custom taxonomies. Let’s call them
'custom_tax_one'
and'custom_tax_two'
. Both need to have the same three custom field checkboxes. Each checkbox will be connected to whether or not a specific icon displays next to the taxonomy term in the post templates. Only'custom_tax_one'
needs an additional text input field. This text input field will specifically be used to insert an optional link.The goal of associating the checkboxes and input fields with the taxonomies rather than the posts is to reduce replication of work.
Any good existing tutorials for adding/using checkbox and/or text input options? Any pros out there willing to walk me through this or share some additional examples that might help me figure out what I need in order to develop a function for this?
- The topic ‘add custom field checkboxes and text input options to a taxonomy’ is closed to new replies.