On February 10, 2015 at 7:52 am
This is actually a WordPress bug which will be fixed in WordPress 4.2 (https://core.trac.wordpress.org/ticket/30831)
There is a fix for now. Open up layout1.php and replace this:
<?php
global $wp_query;
$big = 999999999; // need an unlikely integer
echo paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages,
'show_all' => true,
'prev_next' => false
) );
?>
with this:
<?php
global $wp_query;
$big = 999999999; // need an unlikely integer
echo paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages,
'show_all' => true,
'prev_next' => false,
'add_args' => false
) );
?>
Regards