Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › User Search and Multiple Keywords › Reply To: User Search and Multiple Keywords
December 13, 2018 at 3:41 pm
#20399
Keymaster
Hi,
I thought of possible solution. I have added an additional query argument, that can be changed via a custom hook within the function.php file. So I changed the files, and I will include this change in the upcoming release as well, so you don’t have to overwrite it every time.
Just keep this custom code in your theme functions.php file, and it will work without any changes:
add_action('asp_query_args', 'asp_query_args_meta_changes');
function asp_query_args_meta_changes($args) {
$args['user_search_meta_fields_separate_subquery'] = 1;
return $args;
}