$content_type, 'post__in' => array_filter( $content_ids ), 'orderby' => 'post__in', 'posts_per_page' => absint( 5 ), 'ignore_sticky_posts' => true, ); $args = apply_filters( 'ascendoor_magazine_flash_news_section_args', $args ); ascendoor_magazine_render_flash_news_section( $args ); /** * Render Flash News Section. */ function ascendoor_magazine_render_flash_news_section( $args ) { $section_title = get_theme_mod( 'ascendoor_magazine_flash_news_title', __( 'Flash News', 'ascendoor-magazine' ) ); $query = new WP_Query( $args ); if ( $query->have_posts() ) : ?>
have_posts() ) : $query->the_post(); ?>