'post', 'posts_per_page' => absint( 4 ), 'ignore_sticky_posts' => true, ); if ( ! empty( array_filter( $content_ids ) ) ) { $args['post__in'] = array_filter( $content_ids ); $args['orderby'] = 'post__in'; } else { $args['orderby'] = 'date'; } } else { $cat_content_id = get_theme_mod( 'blog_corner_flash_articles_content_category' ); $args = array( 'cat' => $cat_content_id, 'posts_per_page' => absint( 4 ), ); } $args = apply_filters( 'blog_corner_flash_articles_section_args', $args ); blog_corner_render_flash_articles_section( $args ); /** * Render Flash Articles Section. */ function blog_corner_render_flash_articles_section( $args ) { $section_title = get_theme_mod( 'blog_corner_flash_articles_title', __( 'Flash Articles', 'blog-corner' ) ); $query = new WP_Query( $args ); if ( $query->have_posts() ) : ?>
have_posts() ) : $query->the_post(); ?>