$content_type, 'post__in' => $content_ids, 'orderby' => 'post__in', 'posts_per_page' => absint( $content_count ), 'ignore_sticky_posts' => true, ); } else { $cat_content_id = get_theme_mod( 'businesity_case_study_content_category' ); $args = array( 'cat' => $cat_content_id, 'posts_per_page' => absint( $content_count ), ); } $args = apply_filters( 'businesity_case_study_section_args', $args ); businesity_render_case_study_section( $args ); /** * Render Case Study Section. */ function businesity_render_case_study_section( $args ) { $section_title = get_theme_mod( 'businesity_case_study_title', 'Our Services' ); $cs_button_label = get_theme_mod( 'businesity_case_study_button_label' ); $cs_button_link = get_theme_mod( 'businesity_case_study_button_link' ); $cs_button_link = ! empty( $cs_button_link ) ? $cs_button_link : '#'; $query = new WP_Query( $args ); ?>

have_posts() ) : ?>
have_posts() ) : $query->the_post(); ?>