'post', 'post__in' => array_filter( $slider_content_ids ), 'orderby' => 'post__in', 'posts_per_page' => absint( 3 ), 'ignore_sticky_posts' => true, ); } else { $cat_content_id = get_theme_mod( 'bright_news_main_banner_slider_content_category' ); $banner_slider_args = array( 'cat' => $cat_content_id, 'posts_per_page' => absint( 3 ), ); } $banner_slider_args = apply_filters( 'bright_news_main_banner_section_args', $banner_slider_args ); if ( $banner_posts_content_type === 'post' ) { for ( $i = 1; $i <= 3; $i++ ) { $banner_posts_ids[] = get_theme_mod( 'bright_news_banner_posts_content_post_' . $i ); } $banner_posts_args = array( 'post_type' => 'post', 'post__in' => array_filter( $banner_posts_ids ), 'orderby' => 'post__in', 'posts_per_page' => absint( 3 ), 'ignore_sticky_posts' => true, ); } else { $cat_content_id = get_theme_mod( 'bright_news_banner_posts_content_category' ); $banner_posts_args = array( 'cat' => $cat_content_id, 'posts_per_page' => absint( 3 ), ); } $banner_posts_args = apply_filters( 'bright_news_main_banner_section_args', $banner_posts_args ); bright_news_render_banner_section( $banner_slider_args, $banner_posts_args ); /** * Render Banner Section. */ function bright_news_render_banner_section( $banner_slider_args, $banner_posts_args ) { ?>