• Resolved leelnj

    (@leelnj)


    Hello,

    I am trying to figure out what controls the job keyword search functionality. Does it search the jobs based on Title? Description? Salary? Categories? Location? Job types? etc. I am running advanced custom fields and want to know if i can have a meta keyword field so i can put in keywords on a job page so i can populate it with as many search terms around that job type that people may use. On blog posts you have meta keywords that are used for search purposes so is their any way i can have a keyword meta field within a job page that the keyword search will recognise. If so how? Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hope this piece of code can help you.

    Cordially

    function my_wpjm_meta_key_dm() {
      global $wpdb, $job_manager_keyword;
      $searchable_meta_keys[] = '_job_location'; 
      return $searchable_meta_keys;
    }
    add_filter('job_listing_searchable_meta_keys', 'my_wpjm_meta_key_dm');
    • This reply was modified 3 years, 3 months ago by nghtmre.
    Thread Starter leelnj

    (@leelnj)

    Hi. Thanks very much for this code snippet. Coud you please explain exactly what it does. Do i have to add a custom meta field to make this work. if i do need to add a custom meta field do i need to amend the code above. Thanks in advance

    Hello,

    I have provided you with the documentation link that might help you.

    Do not hesitate, cordially

    function my_wpjm_meta_key_dm() {
        global $wpdb, $job_manager_keyword;
        $searchable_meta_keys[] = '_my_meta_field';
        return $searchable_meta_keys;
    }
    add_filter('job_listing_searchable_meta_keys', 'my_wpjm_meta_key_dm');

    https://wpjobmanager.com/document/wpjm-core-snippets/

    Plugin Support bindlegirl (a11n)

    (@bindlegirl)

    I’m marking this as resolved since it’s been over 2 weeks with no response. If you still need help with this, please feel free to mark it ‘not resolved’ again.

    Thanks

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