'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( 'zenith_blog_list_posts_content_category' ); $args = array( 'cat' => $cat_content_id, 'posts_per_page' => absint( 4 ), ); } $args = apply_filters( 'zenith_blog_list_posts_section_args', $args ); zenith_blog_render_list_posts_section( $args ); /** * Render List Posts Section. */ function zenith_blog_render_list_posts_section( $args ) { $query = new WP_Query( $args ); if ( $query->have_posts() ) : $section_title = get_theme_mod( 'zenith_blog_list_posts_title', __( 'List Posts', 'zenith-blog' ) ); $section_subtitle = get_theme_mod( 'zenith_blog_list_posts_subtitle', '' ); ?>

have_posts() ) : $query->the_post(); ?>