• Resolved nickwilmot

    (@nickwilmot)


    I’m using Genesis 2.2.2, WP 4.3 and the Relevanssi search plugin (free).

    Pagination works for archives, but not for search results. Anything past page 1 throws a 404 error.

    Pagination is fine with standard WP search and the grid loop plugin.

    Pagination is fine with relevenssi without grid loop plugin.

    The two wont play! It doesn’t seem to be theme related as when testing with the Genesis parent theme, the same behaviour exists. No other plugins seem to be at fault.

    Any ideas anyone? Many thanks

    https://www.ads-software.com/plugins/genesis-grid-loop/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    Genesis Grid lets you have a different number of posts on the first page and subsequent pages. To make the pagination links at the bottom work correctly, we have to modify the query so it knows the *actual* number of posts per page.

    Third party search plugins are also modifying the search query to display their search results, which is what causes your issue.

    Possible solutions:
    1) Make the first page and subsequent pages have the same number of posts, which should fix everything
    2) Make the first and subsequent pages of only search results show the same number of pages (will require writing code using the built-in filters)
    3) Don’t use Genesis Grid for search pages
    4) Don’t use a custom search

    Basically do anything EXCEPT have different number of posts on the first and subsequent pages of search results when using a third party search plugin.

    Thread Starter nickwilmot

    (@nickwilmot)

    Hi Bill, thanks for the reply, and sorry for taking so long to acknowledge it!

    Your latest update seem to help with thje issue, although it was sometimes still unreliable. I opted in the end to just use the default WP search. It was an oddity of my specific setup I think, which was taking too long to debug.

    Thank again, and thanks for your contribution to the WP Genesis community.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pagination (page 2 ) of search results throwing 404’ is closed to new replies.