Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › User Search and Multiple Keywords › Reply To: User Search and Multiple Keywords
Hi Ernesto,
thanks for your reply.
I typed this yesterday evening an re-read it now. For a further explanation: the users are registered with ulitmatemember which isn’t the problem because ultimatemember creates a regular wordpress user and puts some user meta on top.
Some of the custom user meta we added were trainee positions like “computer sciences” or “global health care management” and so on. In total there are around 560 trainee options. For each user we store an individual selection of these 560 trainee positions in the user meta as serialzed data. Each user also has a company name and the companies address (not serialized) stored as user meta fields.
Now if we search for (lets stick to the example) “global health care management” we get all the companies who offer this trainee track. If we use an additional dropdown filter for the cities (which is generated from all the user meta) and enter the search term “global health care management” everything is allright. We get all the companies in the city with this option.
But if we enter “global health care management” AND the same city name in the search input field (without the filter) we get nothing as a result.
I tried to use OR in combination with the two search terms but this gives me either alls results for the city regardless of the trainee position, or all the trainee positions regardless of the city.
Would it be a big problem to change this in the code? I’m not afraid of performance problems because it’s a limited amount of users (regional event) and a limited amount of trainee positions. Maybe with an optional “mayham” checkbox? 🙂
Thanks,
Kai