$content_type, 'posts_per_page' => absint( 1 ), 'ignore_sticky_posts' => true, ); if ( ! empty( array_filter( $content_id ) ) ) { $args['post__in'] = array_filter( $content_id ); $args['orderby'] = 'post__in'; } else { $args['orderby'] = 'date'; } $args = apply_filters( 'bizzweb_mission_section_content', $args ); bizzweb_render_mission_section( $args ); /** * Render Mission Section */ function bizzweb_render_mission_section( $args ) { $query = new WP_Query( $args ); if ( $query->have_posts() ) : $subtitle = get_theme_mod( 'bizzweb_mission_subtitle', __( 'Our Mission', 'bizzweb' ) ); $mission_list = get_theme_mod( 'bizzweb_mission_list' ); while ( $query->have_posts() ) : $query->the_post(); ?>