'post', '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'; } } else { $cat_content_id = get_theme_mod( 'blog_articles_posts_grid_category' ); $args = array( 'cat' => $cat_content_id, 'posts_per_page' => absint( 3 ), ); } $query = new WP_Query( $args ); if ( $query->have_posts() ) { $section_title = get_theme_mod( 'blog_articles_posts_grid_title', __( 'Latest Posts', 'blog-articles' ) ); $viewall_btn = get_theme_mod( 'blog_articles_posts_grid_view_all_button_label', __( 'View All', 'blog-articles' ) ); $viewall_btn_link = get_theme_mod( 'blog_articles_posts_grid_view_all_button_url', '#' ); ?>

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