Forums

[Plugin: Query Multiple Taxonomies] How to do an 'OR' search? I tried ',' instead of '+' (4 posts)

  1. JsonB123
    Member
    Posted 2 years ago #

    When I don't have the plugin installed (and by the way I'm using 1.2 alpha 5) I am able to use commas to do an OR search. However, when I enable the multiple-taxonomy plugin, commas separated items for a the same taxonomy have no effect!

    E.G:
    http://mysite.com/?tag=foo,bar (which would return all posts tagged with foo or bar or both).

    How do I get this to work with your plugin?

  2. scribu
    Member
    Posted 2 years ago #

    Commas are the correct way to do an OR search. However, WordPress allows OR and AND searches only for tags and categories (not for custom taxonomies).

    Try the development version.

  3. JsonB123
    Member
    Posted 2 years ago #

    Thanks for the reply sribu.

    I had been using the dev version but then installed this alpha one just in case there was a fix for it. Is there no way to do this with custom taxonomies with the "Query Multiple Taxonomies" plugin?

    If not, do yo have a recommendation as to another plugin that will allow me to do this that integrates well with QMT? I'm also not afraid of coding PHP so any pointers are helpful!

    Thank you for your plugin btw, it's very helpful.

  4. scribu
    Member
    Posted 2 years ago #

    It turns out there was a regression in the dev version. OR queries are supported again: [252589]

Topic Closed

This topic has been closed to new replies.

About this Topic