• When users click on Next Page 1>2>3>4, its showing error page 404.
    how to solve this.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • 1. Jobs – setting – Permalink slug – /test/page
    2. Settings- permalinks – post name

    3. add this code to functions.php

    function wphelp_custom_pre_get_posts( $query ) {
    if( $query->is_main_query() && !$query->is_feed() && !is_admin() && is_category()) {
    $query->set( ‘paged’, str_replace( ‘/’, ”, get_query_var( ‘page’ ) ) ); } }
    add_action(‘pre_get_posts’,’wphelp_custom_pre_get_posts’);
    function wphelp_custom_request($query_string ) {
    if( isset( $query_string[‘page’] ) ) {
    if( ”!=$query_string[‘page’] ) {
    if( isset( $query_string[‘name’] ) ) { unset( $query_string[‘name’] ); } } } return $query_string; }
    add_filter(‘request’, ‘wphelp_custom_request’);`

    Same here and I’d rather not mess with the functions.php file ??

    Will be nice to have an official fix. For now I just updated the number of posts displayed by page so I don’t have pagination, but it can’t be a permanent solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pagination Shows 404 Error’ is closed to new replies.