Hi @ypb2021
Sorry for the delay, there is a default filter field on the jobs list page https://www.screencast.com/t/eY72zp891e
If you need something custom there is a hook in WP_Query
that we use for AJAX response.
$query_args = apply_filters( 'jb_get_jobs_query_args', $query_args );
There is an example of the code that you can use for the custom filtering by the city:
$query_args['meta_query'] = array_merge( $query_args['meta_query'], array(
'relation' => 'AND',
array(
'relation' => 'OR',
array(
'key' => 'jb-location',
'value' => $location,
'compare' => 'LIKE',
),
array(
'key' => 'jb-location-preferred',
'value' => $location,
'compare' => 'LIKE',
),
),
)
Let me know if you have other questions,
Best Regards!