Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Pagination sequence error

  • Hi. Why when we check via screaming frog we had this error?
    How to solve this issue?

  • Hi there,

    We can follow the suggestion in the ‘How to fix’ section of your screenshot. To do that, add this snippet:

    add_filter('paginate_links_output', function($output, $args) {
        $output = str_replace('class="prev', 'rel="prev" class="prev', $output);
        $output = str_replace('class="next', 'rel="next" class="next', $output);
        return $output;
    }, 20, 2);

    Adding PHP: https://docs.generatepress.com/article/adding-php/

  • Hi we already put this code via code snippet as you suggest
    Please recheck again. Because we check the error still appear?

  • As you can see, the rel="next" and rel="prev" attributes have been added to the pagination links, just as suggested: https://postimg.cc/BLtnBqJ8

    Not sure why Screaming Frog did not pick up the changes, but you may need to give it a little time and retest.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.