Support » Plugin: Google CSE » Search results pagination problem

  • Resolved rubywhite


    Hi Erik,

    This looks like a great plugin, but I am having a problem with results that span multiple pages. I’m using WordPress 3.4.2 and version 1.0.2 of your plugin.
    The number of blog posts is set to 10.

    If I search for words that return less than 10 results, no problem.
    If there are over 10 results but less than 20 then the first page is fine, but the Older Posts link returns a 404 error.
    If there are over 20 results but less than 30 the first and second pages of results are fine, but the last page has the 404 error.

    I have a test site setup at
    You can try searching for ‘john’, ‘mac’, ‘and’

    This site uses the ThemeID responsive theme but I get the same results with the Twenty Eleven theme. I’ve tested with all other plugins deactivated with the same results.

    Thanks for your help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author ptz0n


    Hi rubywhite & thx for the explicit bug report.

    I have experienced the same problem with later versions.

    I’m on it and will get back to you with the progress and a new release of the plugin.



    Thanks Erik, I appreciate your work.

    I’ve gone ahead and made my site live at with your plugin disabled (for now) but I look forward to activating it with your new release.

    Thanks again.



    I’m experiencing this same issue with paginated search results. The first page of the query returns 10 results, but the pagination links all result in 404 errors. I think this happens because our Google CSE returns several hundred results, but our default WordPress query for the same term returns fewer results. Consequently, when we try to load a search results page greater than the max number of pages in the default query, we get a 404 error.

    As far as I can tell, your plugin is the only one out there that integrates the google cse results with the wp_query, which is exactly what we want to do. I really like your approach and want to help make it work.
    Let me know if I could be any use fixing this bug. your hard work is appreciated.


    Plugin Author ptz0n


    @gabeshaughnessy That’s right! Thanks for the clarification.

    The source code is located in an open repository at GitHub. Please submit a pull request and I will gladly merge it and then update the plugin.

    Thanks again, good job!

    Checking in to see if there’s a plan to resolve this. Otherwise, alas, I’ll need to stop using what otherwise is a great plugin.

    I think I’ll disable the plugin until this issue has been resolved. I do like the approach, but the implementation needs a little tweak.

    Plugin Author ptz0n


    This issue have been resolved and code is available to try out at Github.

    Hi Erik,
    This is great! Thanks so much. Works perfectly.
    Cheers, John

    Yes, working beautifully now. Thanks so much!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Search results pagination problem’ is closed to new replies.