-1, 'cat' => $catQ, 'author' => $authorQ, 'tag' => $tagQ, 'monthnum' => $dateQ, 's' => $searchQ ) ); // The Loop while ( $the_query->have_posts() ) : $the_query->the_post(); $post_count++; endwhile; // Reset Post Data wp_reset_postdata(); $post_count = $post_count - get_option('posts_per_page'); if($post_count <= 0) $post_count = 0; ?>