25, 'post_status' => 'publish' ) ); $count = $wp_the_query->post_count; if (have_posts()) { while (have_posts()) { the_post(); $category = get_the_category()[0]; $count++; ?>