I have a custom query which calls all "coupons" in the current category, however when I go to page 2 I get a 404 error.
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(array( 'post_type' => 'coupons', 'category__in' => array(get_the_category('cat')), 'posts_per_page' => 1, 'paged'=> $paged )); ?>
I have tried every single fix I could find in 3 days of searching the web, nothing as worked, when I change the default posts per page setting under reading to 1 then I get a second page working but 404 error on page 3 and beyond. I am absolutely stuck, I have used queries like this before with no issues with pagination.