Title: Taxonomy assigned
Last modified: August 30, 2016

---

# Taxonomy assigned

 *  Resolved [Zenbirdy](https://wordpress.org/support/users/zenbirdy/)
 * (@zenbirdy)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/taxonomy-assigned/)
 * I create a form and add a processor to it (custom fields: save as post type)I
   have a field to add a taxonomy, when the post is created, even though I can see
   the taxonomy field, the post is not “tagged” with the taxonomy. I also create
   a post manually and add the taxonomy in the backend(without caldera form) and
   when I published the post I can see that it is tagged with the taxonomy.
    My 
   question is even though the select a taxonomy field is assigned, is there any
   further step to be followed in order for the taxonomy to be “tagged” or “assigned”
   to the post?
 * [https://wordpress.org/plugins/caldera-forms/](https://wordpress.org/plugins/caldera-forms/)

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

 *  Plugin Author [Josh Pollock](https://wordpress.org/support/users/shelob9/)
 * (@shelob9)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/taxonomy-assigned/#post-6594025)
 * Our custom fields add-on, at this time, does not create taxonomy associations.
   I would recommend using the Run Action processor to fire an action, grab the 
   taxonomy field from there and pass it to `wp_set_object_terms()`
 * See:
    [https://calderawp.com/doc/custom-processing-of-caldera-forms-submissions/](https://calderawp.com/doc/custom-processing-of-caldera-forms-submissions/)
   [https://codex.wordpress.org/Function_Reference/wp_set_object_terms](https://codex.wordpress.org/Function_Reference/wp_set_object_terms)
   [https://calderawp.com/downloads/caldera-forms-run-action/](https://calderawp.com/downloads/caldera-forms-run-action/)
 *  [john470fc](https://wordpress.org/support/users/john470fc/)
 * (@john470fc)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/taxonomy-assigned/#post-6594137)
 * I’m looking to implement the same here. So I can use the following hook to populate
   an array with the data from the form;
 * add_action( ‘caldera_forms_submit_complete’, ‘slug_process_form’, 55 );
    function
   slug_process_form( $form ) {
 *  //put form field data into an array $data
    $data= array(); foreach( $form[ ‘
   fields’ ] as $field_id => $field){ $data[ $field[‘slug’] ] = Caldera_Forms::get_field_data(
   $field_id, $form ); }
 *  //get embedded post ID.
    $embeded_post_id = absint( $_POST[ ‘_cf_cr_pst’ ] );
 *  /** DO SOMETHING WITH $data here **/
    }
 * Followed by something like;
 * wp_set_object_terms( $embeded_post_id, $data[5], ‘taxonomy’ );
 * Where ‘taxonomy’ is some defined taxonomy, and $data[5] assumes some sort of 
   field order. And I’m just using ‘caldera_forms_submit_complete’ as the Run Action(
   no args).
 * However, I think I’m missing something here :-/

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

The topic ‘Taxonomy assigned’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/caldera-forms_475846.svg)
 * [Caldera Forms - More Than Contact Forms](https://wordpress.org/plugins/caldera-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caldera-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caldera-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/caldera-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caldera-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caldera-forms/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [john470fc](https://wordpress.org/support/users/john470fc/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/taxonomy-assigned/#post-6594137)
 * Status: resolved