add_section('aboutus', array( 'title' => __('Home About Section', 'atlanta'), 'description' => '', 'panel' => 'frontpage', 'priority' => 150, ) ); $wp_customize->add_setting( 'atlanta_aboutus_section_hideshow', array( 'default' => false, 'sanitize_callback' => 'atlanta_customizer_sanitize_checkbox', ) ); $wp_customize->add_control('atlanta_aboutus_section_hideshow', array( 'type' => 'checkbox', 'label' => __('About Us Show/hide Option', 'atlanta'), 'description' => '', 'section' => 'aboutus', 'priority' => 1 ) ); // About Us title $wp_customize->add_setting('atlanta-about_title', array( 'default' => '', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control('atlanta-about_title', array( 'label' => __('About Title', 'atlanta'), 'section' => 'aboutus', 'priority' => 1 ) ); $atlanta_about_no = 1; for( $i = 1; $i <= $atlanta_about_no; $i++ ) { $atlanta_about_page = 'atlanta_about_page_' .$i; } $wp_customize->add_setting( $atlanta_about_page, array( 'default' => '', 'sanitize_callback' => 'atlanta_sanitize_dropdown_pages', ) ); $wp_customize->add_control( $atlanta_about_page, array( 'label' => __( 'About Page ', 'atlanta' ), 'section' => 'aboutus', 'type' => 'dropdown-pages', 'priority' => 100, ) );