baereli
Forum Replies Created
-
Hi Bradvin
Thanks.
Do you have plans regarding localisation?
I could support you in translating the text to German.Regards
Baereli
Attached the complete function with the changes:
function save_taxonomy_field( &$field, $entry, $taxonomy ) { if ( $field['type'] == 'checkbox' ) { $term_ids = array(); foreach ( $field['inputs'] as $input ) { $term_id = (int) $entry[ (string) $input['id'] ]; if ( $term_id > 0 ) $term_ids[] = $term_id; } if ( !empty ( $term_ids )) wp_set_object_terms( $entry['post_id'], $term_ids, $taxonomy,true ); } else { $term_id = (int) $entry[$field['id']]; if ( $term_id > 0 ) wp_set_object_terms( $entry['post_id'], $term_id, $taxonomy, true ); } }Hi
I could fix the problem by adding the append option with parameter true:
Plugin: Gravity Forms + Custom Post Types 2.0
File: GFCPTAddonBase.php
Line 205: wp_set_object_terms( $entry[‘post_id’], $term_id, $taxonomy, true );Would be glad if this fix could by included in the next release.
Regards
Richard
Hi
I use a form with 5 pages. On three pages I show a drop down populated with the same custom taxonomy (e.g. on page 1: drop down for custom taxonomy (therapy) selection 1, on page 2: drop down for custom taxonomy (therapy) selection 2, …) the form saves directly into a custom post type entry (I’m also using the Custom Post Type AddOn 2.0).
When I check the resulting entry only the last dropdown selection in the form is saved in the entry. I would expext that all dorpdown selections would be saved into the entry.
Any ideas, how to do this or is it a bug?
Regards
Richard