WordPress.org

Ready to get started?Download WordPress

Forums

Relevanssi - A Better Search
how to search keyword with multiple tags? (2 posts)

  1. binga30
    Member
    Posted 1 year ago #

    Hi,

    First off, great plugin, use it on many of our sites.

    My problem is related to searching for multiple tags. I have a search field , and checkboxes for my tags. I can search for a keyword with one tag selected and the results are perfect. However if I select 2 tags for the keyword the results only accept the last tag.

    I believe it is something to do with how relevanssi makes the url as a normal search for multiple tags would be http://www.mysite.com/?s=keyword&tag=tag1,tag2 but relevanssi makes the url http://www.mysite.com/?s=keyword&tag=tag1&tag=tag2. When I manually insert the correct url, i get the correct results.

    I have not been able to find where relevanssi builds the url from in the plugin files.

    Any help appreciated.

    Regards

    Steve

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

  2. Mikko Saari
    Member
    Plugin Author

    Posted 1 year ago #

    Relevanssi doesn't change the URL. That comes from somewhere else. When I run a query like this on my site, it works just fine (though if you expect it to be an AND search, you'll be disappointed, as it's an OR search, ie. any tag present will do).

    Anyway, when using Relevanssi, I recommend using "tags" instead of "tag", it works more reliably that way.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic