$content_type, 'posts_per_page' => absint( 3 ), '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'; } $args = apply_filters( 'ascendoor_coach_banner_section_args', $args ); ascendoor_coach_render_banner_section( $args ); /** * Render Banner Section. */ function ascendoor_coach_render_banner_section( $args ) { $query = new WP_Query( $args ); if ( $query->have_posts() ) : ?>