'post', 'posts_per_page' => 7, 'post_status' => 'publish', 'no_found_rows' => 1, 'ignore_sticky_posts' => 1, ); if (!empty($cat_highlight_post_category)) : $cat_highlight_args_1['tax_query'] = array( array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $cat_highlight_post_category, ), ); endif; $cat_highlight_post_1 = new WP_Query($cat_highlight_args_1); if ($cat_highlight_post_1->have_posts()) : $post_count = 0; ?>
have_posts() && $post_count < 1) : $cat_highlight_post_1->the_post(); $post_count++; ?>
have_posts() && $post_count < 5) : $cat_highlight_post_1->the_post(); $post_count++; ?>
have_posts() && $post_count < 7) : $cat_highlight_post_1->the_post(); $post_count++; ?>