$slider_content_type, 'post__in' => array_filter( $content_ids ), 'orderby' => 'post__in', 'posts_per_page' => absint( 3 ), 'ignore_sticky_posts' => true, ); $banner_slider_args = apply_filters( 'ascendoor_magazine_banner_section_args', $banner_slider_args ); for ( $i = 1; $i <= 4; $i++ ) { $grid_content_ids[] = get_theme_mod( 'ascendoor_magazine_banner_grid_post_content_' . $gird_content_type . '_' . $i ); } $banner_grid_args = array( 'post_type' => $gird_content_type, 'post__in' => array_filter( $grid_content_ids ), 'orderby' => 'post__in', 'posts_per_page' => absint( 4 ), 'ignore_sticky_posts' => true, ); $banner_grid_args = apply_filters( 'ascendoor_magazine_banner_section_args', $banner_grid_args ); ascendoor_magazine_render_banner_section( $banner_slider_args, $banner_grid_args ); /** * Render Banner Section. */ function ascendoor_magazine_render_banner_section( $banner_slider_args, $banner_grid_args ) { ?>