• Resolved flamuren

    (@flamuren)


    As I understand by Myles search and filter plugin, WPJM does not search all meta data when using the keyword search field. Is it possible with any easy solution (except his plugin) to make WPJM do this or does it take a lot of custom coding to achive this?

    /flamuren

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi there, @flamuren,

    WP Job Manager can search all custom fields assigned to a job listing with the help of the?job_listing_searchable_meta_keys?filter.

    This allows developers or users to define an array of keys of searchable meta data on the job listing by adding custom code snippets to their theme’s functions.php file or where they add custom code.

    You can find more information and examples on how to set this up in the WP Job Manager documentation on this page.

    If that’s what you were looking for, then a bit of custom coding is required – otherwise there’s the plugin alternative you mentioned.

    Plugin Support Tamirat B. (a11n)

    (@tamirat22)

    Hello @flamuren

    It’s been one week since this topic was last updated. I’m going to mark this thread as solved. If you have any further questions or need more help, you’re welcome to open another thread here. Cheers!

    Thread Starter flamuren

    (@flamuren)

    @erania-pinnera thanks for that code tip! I think that was what I was looking for.

    On the topic: how can I locate the different meta keys for WPJM? I tried looking in to the DB but I could not find anything. No idea what all the meta keys should be named. Otherwise the code seems straight forward to add – thanks ??

    Plugin Support Jay

    (@bluejay77)

    Hi @flamuren,

    We don’t have a consolidated list of meta keys published on the doc, as this kind of developer-level support is outside the scope of support.

    That said, I recommend looking through the code base and familiarizing yourself (which it sounds like you’ve already done!). For example, here are our custom fields for the Job Listings. the?meta_keys?are the array keys.

    https://github.com/Automattic/WP-Job-Manager/blob/trunk/includes/class-wp-job-manager-post-types.php#L1504

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Make WPJM search all meta data’ is closed to new replies.