• Resolved welsh10

    (@welshlamb10)


    Hello,

    I’m hoping to have a [jobs] page that shows multiple keywords for example
    [jobs keywords=”animal”&”zoo”]

    Is there a way for the listings to show multiple search keywords?
    Not sure If I’m missing something basic here.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Gaurav

    (@gaurav984)

    Hi there,

    Thanks for reaching out. You can separate multiple values for an argument with commas … for example, the shortcode should look like.

    [jobs keywords="animal, zoo"]

    I would recommend using either Job Categories or Job Types instead of multiple keywords in the shortcode.

    More information here https://wpjobmanager.com/document/shortcode-reference/

    Thread Starter welsh10

    (@welshlamb10)

    Hi @gaurav984,

    Unfortunately, that does not work. It’s as if it’s looking for jobs that contain both keywords. Any workaround?

    Thanks for your time

    Plugin Contributor Cena (a11n)

    (@cena)

    Hi @welshlamb10 ,

    So you want something that will display EITHER ‘zoo’ OR ‘animals’, but NOT both, is that right?

    I ask because your original question said: “I’m hoping to have a [jobs] page that shows…[jobs keywords=”animal”&”zoo”] ”

    That last bit is important because in programming terms, AND means something different from OR. ??

    If that’s the case, WPJM searches will return job listings that have ALL the words that you searched for present in the listing (meaning, it uses AND in its searches, not OR.) Which isn’t what it sounds like you want to do.

    We have an open issue for this here:

    https://github.com/Automattic/WP-Job-Manager/issues/1707

    to which I’ve added this thread.

    Althogh I’m not sure whether it allows you to perform OR searches, you might also take a look at this plugin, made by a different developer:

    ou may find this 3rd party plugin to extend WPJM’s search and filtering:

    https://plugins.smyl.es/wp-job-manager-search-and-filtering

    Best,
    Cena

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple Keyword search’ is closed to new replies.