WordPress.org

Ready to get started?Download WordPress

Forums

Relevanssi - A Better Search
[resolved] second page error (5 posts)

  1. carlytx
    Member
    Posted 1 year ago #

    Just upgraded to WP 3.5 and the latest version of this plugin and now when I do a search on a term it returns the first page of results correctly. However if I click on the link to retrieve more results on the second page it links back to my home page even though the page id seems correct.

    First page of results shows as this:

    http://oursite.com/?s=news and returns the results correctly

    clicking on the retrieval of the second page of results shows this:

    http://oursite.com/page/2/?s=news but displays the home page of the site.

    (note I just changed our actual domain name to oursite)

    I just tried this on another domain which is still running WP 3.42 and this plugin at version 3.05 and it works correctly for all result pages.

    http://wordpress.org/extend/plugins/relevanssi/

  2. Mikko Saari
    Member
    Plugin Author

    Posted 1 year ago #

    Paging does work on my sites, and there should be no changes to it in the recent versions, so probably something else... Could it be the pagination is based on WP search, and the Relevanssi results do not actually have a second page of results?

  3. Tyguy7
    Member
    Posted 1 year ago #

    I am having a similar issue. All pages except page 1 return a 404 error. Previous versions of relevanssi had a paged=pagenumer url argument to control pagination. Now it uses a prefixed /page/pagenumber before the search params in the url. This does not work with my site for some reason. Please help!

  4. Tyguy7
    Member
    Posted 1 year ago #

    I ended adding a catch for is_search() in wp-pagenavi's get_url function. Just forced a new param to the end of the url "page" = $paged...

  5. Mikko Saari
    Member
    Plugin Author

    Posted 1 year ago #

    Tyguy7, Relevanssi does not care whether you have url argument or fancy urls, Relevanssi reads the $wp_query->query_vars['paged'] directly. Relevanssi has no say over which format your blog uses.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic