Create New Taxonomy Term from Frontend User Form Value?
-
I am using Formidable Forms to allow my users to create new posts on my site and one of the form fields is a text input where the user will include their business’s “Parking Instructions”. I have a custom taxonomy “Parking Instructions” but how to I get the value which the user inputs into the form’s text field to create a new term within the Parking Instructions taxonomy?
I cannot edit the code of the form to include the taxonomy as a text field so I have to manually link the value passed from the form to the taxonomy. I have tried using create_term and wp_insert_term( $term, $taxonomy, $args = array() ); but I cannot figure out how to dynamically get the value for $term so that the correct form field will populate the custom taxonomy with a new term.
Anyone got any ideas?
Thanks!
- The topic ‘Create New Taxonomy Term from Frontend User Form Value?’ is closed to new replies.