I'm having an issue with Wordpress Pagination giving me a 404 error when I set the default posts page to be "blog". I've changed it to other pages and it seems to work fine but just the /blog/page/2 returns me a 404 error.
Here is my pagination method
function my_pagination()
{
global $wp_query;
$big = 999999999;
echo paginate_links(array(
'base' => str_replace($big, '%#%', get_pagenum_link($big)),
'format' => '?paged=%#%',
'current' => max(1, get_query_var('paged')),
'total' => $wp_query->max_num_pages
));
}
I've searched google and loads of other people seem to be having similar problems but they are using custom post types, I'm using the default Wordpress posts functionality.
If anybody has had this issue before or knows how to fix it then I would appreciate any help. Thanks.