'post', 'posts_per_page' => 3, 'post_status' => 'publish', 'no_found_rows' => 1, 'ignore_sticky_posts' => 1, ); if (!empty($banner_grid_post_category)) : $post_grid_args['tax_query'] = array( array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $banner_grid_post_category, ), ); endif; $counts = 1; $grid_posts = new WP_Query($post_grid_args); if ($grid_posts->have_posts()) : while ($grid_posts->have_posts()) : $grid_posts->the_post(); ?>
current_post + 1 == $grid_posts->post_count) { ?>
'post', 'posts_per_page' => 3, 'post_status' => 'publish', 'no_found_rows' => 1, 'ignore_sticky_posts' => 1, ); // Check for category. if (!empty($banner_list_post_category)) : $post_list_args['tax_query'] = array( array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $banner_list_post_category, ), ); endif; $count = 1; $list_posts = new WP_Query($post_list_args); ?> have_posts()) : while ($list_posts->have_posts()) : $list_posts->the_post(); ?>