'post', 'post__in' => array_filter( $content_ids ), 'orderby' => 'post__in', 'posts_per_page' => absint( 3 ), 'ignore_sticky_posts' => true, ); } else { $cat_content_id = get_theme_mod( 'ascendoor_coach_blog_content_category' ); $args = array( 'cat' => $cat_content_id, 'posts_per_page' => absint( 3 ), ); } $args = apply_filters( 'ascendoor_coach_blog_section_args', $args ); ascendoor_coach_render_blog_section( $args ); /** * Render Blog Section. */ function ascendoor_coach_render_blog_section( $args ) { $section_title = get_theme_mod( 'ascendoor_coach_blog_title', __( 'Latest Blog', 'ascendoor-coach' ) ); $section_text = get_theme_mod( 'ascendoor_coach_blog_text', '' ); $post_button_label = get_theme_mod( 'ascendoor_coach_blog_posts_button', __( 'Read More', 'ascendoor-coach' ) ); $button_label = get_theme_mod( 'ascendoor_coach_blog_button_label', __( 'View All', 'ascendoor-coach' ) ); $button_link = get_theme_mod( 'ascendoor_coach_blog_button_link' ); $button_link = ! empty( $button_link ) ? $button_link : '#'; $query = new WP_Query( $args ); if ( $query->have_posts() ) : ?>

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