Add two input fields in add_settings_field

From the settings API, add_settings_field( ‘my_first_field-id’, ‘This is the setting title’, ‘myprefix_setting_callback_function’, ‘general’, ‘myprefix_settings-section-name’, array( ‘label_for’ => ‘my_first_field-id’ ) ); myprefix_setting_callback_function(){ echo ‘<input type=”text” name=”my_first_field” value=”‘.get_option(‘my_first_field’).'” />’; }

Customizer settings using “for” loop

You are missing _ in add_control paramater: settings. The settings parameter should be home_features_boxes_icon_’ . $i Full code here: for ( $i = 1; $i < 7; $i++ ) : $wp_customize->add_setting( ‘home_features_boxes_icon_’ . $i, array( ‘default’ => ”, ‘type’ => ‘theme_mod’, ‘capability’ => ‘edit_theme_options’, ‘sanitize_callback’ => ‘esc_html’, ) ); $wp_customize->add_control( ‘home_features_boxes_icon_’ . $i . ‘_c’, … Read more

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