• I create a customizer setting as below but my challenge now is how to echo it. Who can help me. Below was what i have done

    for ( $count = 1; $count <= 4; $count++ ) { $wp_customize->add_setting( ‘mazaproperty_slider_img’ . $count, array(
    ‘default’ => ”,
    ‘transport’ => ‘postMessage’,
    ‘sanitize_callback’ => ‘esc_url_raw’
    ));

        $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'mazaproperty_slider_img' . $count, array(
            'label' => __('Select Slider Image', 'maza-property' ),
            'section' => 'mazaproperty_slider_section',
            'button_labels' => array(
                    'select' => __( 'Select Image', 'maza-property' ),
                    'change' => __( 'Change Image', 'maza-property' ),
                    'remove' => __( 'Remove', 'maza-property' ),
                    'default' => __( 'Default', 'maza-property' ),
                    'placeholder' => __( 'No image selected', 'maza-property' ),
                    'frame_title' => __( 'Select Image', 'maza-property' ),
                    'frame_button' => __( 'Choose Image', 'maza-property' ),
                )
        )));
    }
    • This topic was modified 2 years, 7 months ago by shaibustephen.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Need help on customizer setting’ is closed to new replies.