Filter multiple dynamic dropdown lists within one form using the Smart Grid-layout extension for Contact Form 7

Try this instead, combine all 3 functions into a single one, add_filter(‘cf7sg_dynamic_dropdown_custom_options’, ‘filter_options’,10,3); function filter_options($options, $field_name, $form_key){ //field ‘dynamic_select-461’ if($form_key == ‘bez-nazvu’ && $field_name == ‘dynamic_select-461’) { $options = array(); //get your terms $terms = get_the_terms( $post->ID , ‘strava’ ); if( ! empty( $terms ) && ! is_wp_error( $term_args ) ) { foreach( $terms as … Read more

Add Line Break/Remove Commas for Checkbox options sent via Email from Contact Form 7 [closed]

yes, this is possible using the CF7 ‘wpcf7_mail_tag_replaced’ filter, add_filter(‘wpcf7_mail_tag_replaced’, ‘format_chackbox’,10,4); function format_chackbox($replaced, $submitted, $is_html, $mail_tag){ //you can check if this is the right field if need be. if(‘my-checkbox-field’ != $mail_tag->field_name()) return $replaced; //$submitted contains the raw submitted data. //$replaced is the formatted data, you can use either. $a = explode(‘,’, $replaced); //check if you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)