Our team section. * * @package business-class */ /** * Exit if accessed directly. */ if ( ! defined( 'ABSPATH' ) ) { exit; } $panel_name = 'front_page'; $section_name = 'our_blogs'; $enable_section = business_class_get_theme_mod( $panel_name, $section_name, 'Enable Section' ); if ( ! $enable_section ) { return; } $blog_url = get_post_type_archive_link( 'post' ); $heading = business_class_get_theme_mod( $panel_name, $section_name, 'heading' ); $sub_heading = business_class_get_theme_mod( $panel_name, $section_name, 'sub_heading' ); $button_label = business_class_get_theme_mod( $panel_name, $section_name, 'button_label' ); $number_of_items = business_class_get_theme_mod( $panel_name, $section_name, 'number_of_items' ); $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => $number_of_items, 'post__not_in' => get_option( 'sticky_posts' ), // We need to exclude sticky posts. ); $the_query = new WP_Query( $args ); ?>