Title: wp_set_post_terms without append parameter set.
Last modified: August 20, 2016

---

# wp_set_post_terms without append parameter set.

 *  [timfield](https://wordpress.org/support/users/timfield/)
 * (@timfield)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wp_set_post_terms-without-append-parameter-set/)
 * Hey would you guys be able to make the following change. The non append here 
   is causing me to lose all taxonimes passed to wp_insert_post using the tax_input
   param.
 *     ```
       Index: gfcptaddonbase.php
       ===================================================================
       --- gfcptaddonbase.php	(revision 659110)
       +++ gfcptaddonbase.php	(working copy)
       @@ -412,7 +412,7 @@
                    } else if ( array_key_exists( 'type', $field ) && $field['type'] == 'text' ) {
                      $terms = $entry[$field['id']];
                      if ( !empty($terms) )
       -                wp_set_post_terms( $entry['post_id'], $terms, $taxonomy );
       +                wp_set_post_terms( $entry['post_id'], $terms, $taxonomy, true );
                    } else {
                        $term_id = (int) $entry[$field['id']];
                        if ( $term_id > 0 )
       @@ -422,4 +422,4 @@
            }
        }
   
       -?>
       \ No newline at end of file
       +?>
       ```
   
 * [http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/](http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/)

The topic ‘wp_set_post_terms without append parameter set.’ is closed to new replies.

 * ![](https://ps.w.org/gravity-forms-custom-post-types/assets/icon-256x256.png?
   rev=2542252)
 * [Gravity Forms + Custom Post Types](https://wordpress.org/plugins/gravity-forms-custom-post-types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-custom-post-types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [timfield](https://wordpress.org/support/users/timfield/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/wp_set_post_terms-without-append-parameter-set/)
 * Status: not resolved