add_section('atlantaa_blog_info', array( 'title' => __('Home Blog Section', 'atlantaa'), 'description' => '', 'panel' => 'frontpage', 'priority' => 170 ) ); $wp_customize->add_setting('atlantaa_blog_section_hideshow', array( 'default' => true, 'sanitize_callback' => 'atlantaa_customizer_sanitize_checkbox', ) ); $wp_customize->add_control('atlantaa_blog_section_hideshow', array( 'type' => 'checkbox', 'label' => __('Blog Show/hide Option', 'atlantaa'), 'description' => '', 'section' => 'atlantaa_blog_info', 'priority' => 1 ) ); $wp_customize->add_setting('atlantaa_blog_title', array( 'default' => '', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control('atlantaa_blog_title', array( 'label' => __('Blog Title', 'atlantaa'), 'section' => 'atlantaa_blog_info', 'priority' => 1 ) ); $wp_customize->add_setting( 'news_cat', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 0, ) ); $wp_customize->add_control( new atlantaa_Category_Control( $wp_customize, 'news_cat', array( 'label' => __( 'Category to show', 'atlantaa' ), 'section' => 'atlantaa_blog_info', 'description' => '', ) ) ); // Number posts to show $wp_customize->add_setting( 'news_num_post', array( 'sanitize_callback' => 'absint', 'default' => 3, ) ); $wp_customize->add_control( 'news_num_post', array( 'label' => __('Number Posts:', 'atlantaa'), 'section' => 'atlantaa_blog_info', 'description' => __('How many posts you want to show.', 'atlantaa' ) ) );