• Hi,

    I’m wondering if you can add more than one keyword in the Query Loop Widget Filter Field?

    I tried separating keywords with a comma, inverted commas etc., and it doesn’t work

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator threadi

    (@threadi)

    Comma is the right separator. In my test does it work. But: “keyword” is not the keyword-taxonomy for posts. Its just a full-text search in posts.

    Thread Starter matt1171

    (@matt1171)

    Thanks – have you tested this on your side? It is not working for me. It works with one word, but as soon as you add a comma, and add another word after, it returns 0 results. This is how I am adding the keywords:

    Keyword 1, Keyword 2

    • This reply was modified 2 years, 6 months ago by matt1171.
    Moderator threadi

    (@threadi)

    Yes, I have tested this on my own. I have several posts with “test” in the title and one with “testpost”. I wrote “test,testpost” in the field and then only get “testpost” displayed. With “test” alone, all posts with this term in the title are displayed.

    If it doesn’t work for you, a plugin or the theme you are using may be influencing the results. Deactivate these as a test and switch to a standard theme.

    Thread Starter matt1171

    (@matt1171)

    Hi, but surely if you use “test,testpost”, you should get all posts containing test and testpost? Similarly, if you have 2 posts mentioning “dog”, 2 mentioning cats, 2 mentioning birds, and 2 mentioning cows, then you would use “dog,cat,bird,cow” to include all 8 posts?

    • This reply was modified 2 years, 6 months ago by matt1171.
    Moderator threadi

    (@threadi)

    No, the keywords are connected to each other using “AND”. Posts found must contain all searched terms.

    Thread Starter matt1171

    (@matt1171)

    Ah ok thanks that’s what I wasn’t understanding! Shame you can’t use Boolean operators.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Query Loop Widget’ is closed to new replies.