Title: Add tags using Create Post
Last modified: March 29, 2023

---

# Add tags using Create Post

 *  Resolved [John](https://wordpress.org/support/users/artoftech/)
 * (@artoftech)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/add-tags-using-create-post/)
 * Hi, I’m using the Create Post form and I see you can add a tag(s) field, which
   can be singular or multiple choice. I also need to be able to have the user create
   new ones. I could add a repeater and have this capture tag input(s) but am not
   sure how to convert it/them to post tag(s)? Is this possible? Many thanks for
   this great plugin!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadd-tags-using-create-post%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/add-tags-using-create-post/#post-16610686)
 * Hi [@artoftech](https://wordpress.org/support/users/artoftech/),
 * The Forminator forms are meant for simple actions, I’m afraid, at the moment 
   there isn’t any out-of-the-box feature to create post tags and it’ll require 
   custom coding.
 * You could check whether using [custom fields](https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#custom-fields)
   could help in such a workflow. You might find the following helpful using the
   ACF plugin:
 * [https://support.advancedcustomfields.com/forums/topic/add-post-tags-from-custom-fields-value/](https://support.advancedcustomfields.com/forums/topic/add-post-tags-from-custom-fields-value/)
 * Kind Regards,
 * Nithin
 *  Thread Starter [John](https://wordpress.org/support/users/artoftech/)
 * (@artoftech)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/add-tags-using-create-post/#post-16612013)
 * Hi, I found an article about adding categories that makes use of the “forminator_post_data_field_post_saved”
   
   action.
 * Here is the code I wrote to create tags from a custom field:
 * add_action( ‘forminator_post_data_field_post_saved’, function( $post_id, $field,
   $data ) { 
    if($field[“options”][1][“label”] === ‘custom_tags’) { $tags_val =
   $data[“post-custom”][1][“value”]; wp_set_post_terms( $post_id, $terms = $tags_val,
   $taxonomy = ‘post_tag’, $append = false ); }}, 99, 3);
 * I am fairly new to WP PHP, and haven’t done any error trapping yet; so it probably
   isn’t super robust, but gives others a starting point if they are in need of 
   this capability.
 * BTW-I couldn’t find a list of actions like this in the docs. Can you point me
   to a resource if it exists?
 * Thanks for your time and the excellent plugin!
 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/add-tags-using-create-post/#post-16620928)
 * Hi [@artoftech](https://wordpress.org/support/users/artoftech/)
 * At the moment I’m afraid we only have the following docs in terms of API:
   [https://wpmudev.com/docs/api-plugin-development/forminator-api-docs/](https://wpmudev.com/docs/api-plugin-development/forminator-api-docs/)
 * Our team is already working on improving the documentation when it comes to hooks.
 * Kind Regards,
   Kris

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Add tags using Create Post’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

## Tags

 * [create post](https://wordpress.org/support/topic-tag/create-post/)
 * [tags](https://wordpress.org/support/topic-tag/tags/)

 * 3 replies
 * 3 participants
 * Last reply from: [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/add-tags-using-create-post/#post-16620928)
 * Status: resolved