add_section( 'post_control' , array( 'title' => esc_html__( 'Post/Page Settings', 'abcblog' ), 'priority' => 9, 'description' => esc_html__( 'Control post and pages elements from here.', 'abcblog' ), ) ); $wp_customize->add_setting('blog_first_letter_big', array( 'default' => 'yes', 'sanitize_callback' => '__return_false_value', )); $wp_customize->add_control( 'blog_first_letter_big', array( 'settings' => 'blog_first_letter_big', 'label' => esc_html__( 'Enlarge First Letter On Blog Excerpt?', 'abcblog' ), 'section' => 'post_control', 'type' => 'select', 'choices' => array( 'yes' => 'Yes', 'no' => 'No', ), )); $wp_customize->add_setting('hide_feat_img', array( 'default' => 'yes', 'sanitize_callback' => '__return_false_value', )); $wp_customize->add_control( 'hide_feat_img', array( 'settings' => 'hide_feat_img', 'label' => esc_html__( 'Display Featured Image on Post?', 'abcblog' ), 'section' => 'post_control', 'type' => 'select', 'choices' => array( 'yes' => 'Yes', 'no' => 'No', ), )); $wp_customize->add_setting('hide_tags', array( 'default' => 'yes', 'sanitize_callback' => '__return_false_value', )); $wp_customize->add_control( 'hide_tags', array( 'settings' => 'hide_tags', 'label' => esc_html__( 'Display Tags on Post?', 'abcblog' ), 'section' => 'post_control', 'type' => 'select', 'choices' => array( 'yes' => 'Yes', 'no' => 'No', ), )); $wp_customize->add_setting('hide_author', array( 'default' => 'yes', 'sanitize_callback' => '__return_false_value', )); $wp_customize->add_control( 'hide_author', array( 'settings' => 'hide_author', 'label' => esc_html__( 'Display Author Bio on Post?', 'abcblog' ), 'section' => 'post_control', 'type' => 'select', 'choices' => array( 'yes' => 'Yes', 'no' => 'No', ), )); $wp_customize->add_setting('hide_related_post', array( 'default' => 'yes', 'sanitize_callback' => '__return_false_value', )); $wp_customize->add_control( 'hide_related_post', array( 'settings' => 'hide_related_post', 'label' => esc_html__( 'Display Related Post?', 'abcblog' ), 'section' => 'post_control', 'type' => 'select', 'choices' => array( 'yes' => 'Yes', 'no' => 'No', ), )); $wp_customize->add_setting('hide_comments_post', array( 'default' => 'yes', 'sanitize_callback' => '__return_false_value', )); $wp_customize->add_control( 'hide_comments_post', array( 'settings' => 'hide_comments_post', 'label' => esc_html__( 'Display Comments on Post?', 'abcblog' ), 'section' => 'post_control', 'type' => 'select', 'choices' => array( 'yes' => 'Yes', 'no' => 'No', ), )); $wp_customize->add_setting('hide_comments_page', array( 'default' => 'no', 'sanitize_callback' => '__return_false_value', )); $wp_customize->add_control( 'hide_comments_page', array( 'settings' => 'hide_comments_page', 'label' => esc_html__( 'Display Comments on Page?', 'abcblog' ), 'section' => 'post_control', 'type' => 'select', 'choices' => array( 'no' => 'No', 'yes' => 'Yes', ), )); $wp_customize->add_setting('hide_breadcrumbs_post', array( 'default' => 'yes', 'sanitize_callback' => '__return_false_value', )); $wp_customize->add_control( 'hide_breadcrumbs_post', array( 'settings' => 'hide_breadcrumbs_post', 'label' => esc_html__( 'Display Breadcrumbs on Post?', 'abcblog' ), 'section' => 'post_control', 'type' => 'select', 'choices' => array( 'yes' => 'Yes', 'no' => 'No', ), )); $wp_customize->add_setting('hide_breadcrumbs_page', array( 'default' => 'yes', 'sanitize_callback' => '__return_false_value', )); $wp_customize->add_control( 'hide_breadcrumbs_page', array( 'settings' => 'hide_breadcrumbs_page', 'label' => esc_html__( 'Display Breadcrumbs on Page?', 'abcblog' ), 'section' => 'post_control', 'type' => 'select', 'choices' => array( 'yes' => 'Yes', 'no' => 'No', ), )); $wp_customize->add_setting('hide_breadcrumbs_port', array( 'default' => 'yes', 'sanitize_callback' => '__return_false_value', )); $wp_customize->add_control( 'hide_breadcrumbs_port', array( 'settings' => 'hide_breadcrumbs_port', 'label' => esc_html__( 'Display Breadcrumbs on Portfolio?', 'abcblog' ), 'section' => 'post_control', 'type' => 'select', 'choices' => array( 'yes' => 'Yes', 'no' => 'No', ), )); } add_action( 'customize_register', 'abcblog_post_settings_register' );