In order for pagination to work on the page of one post, you need to put this code in the functions.php file:
1 2 3 4 5 6 7 8 9 10 11 12 13 | add_action( 'template_redirect', 'single_post_second_loop_pagingation_fix', 0 ); function single_post_second_loop_pagingation_fix() { if ( is_singular( 'post' ) ) { global $wp_query; $page = ( int ) $wp_query->get( 'page' ); if ( $page > 1 ) { $query->set( 'page', 1 ); $query->set( 'paged', $page ); } remove_action( 'template_redirect', 'redirect_canonical' ); } } |
Further it is possible to fulfill any requests with pagination in single.php.