So I am excluding posts is several categories from a blog page (categories 4-11).
I am doing so using the following code:
if (have_posts()) : while (have_posts()) : the_post();
$category = get_the_category();
if($category[0]->cat_ID > 11 || $category[0]->cat_ID < 4){
continue;
}
This works to exclude the categories posts from the page but it does not retain the post count per page being 10 or whatever it is set to in the Admin.
How would I programatically decrement the post count by one for posts I skip in the Wordpress Loop so I exclude the category posts i do not want but also retain the same amount of posts per page?