On my wordpress index, I use a custom query:
$paged = (get_query_var('page')) ? get_query_var('page') : 1;
$project_query = new WP_query(array(
'post_type' => 'project',
'paged' => $paged,
'posts_per_page' => 5
));
I am using wp-paginate to setup page numbering, but regardless, as soon as I try to go to the next page, eg: http://domain/page/2
I get a 404 error.
I really cannot for the life of me figure out what is happening. I've set the wordpress reading option to the same number, and my permalink structure is set to Post name
.
Any tips greatly appreciated, I know pagination 404's are a common issue with a lot of people but I haven't been able to find someone who had the same issue with the index.
post
do you have published? fewer than 6?