How to search multiple fields in diff. groups using same keyword?
-
First off, I think your plugin is excellent! It’s simple to use and has great functionality.
I need the ability for users to enter a keyword in a search field (e.g., ‘Dog Breed’ field), but have your query retrieve the results from xprofile fields located in any of 3 different groups that I’ve setup.
For example, let’s say I have…
Group 1 with the following 2 fields:
Dog Breed
Dog ColorGroup 2 with the following 2 fields:
Dog #2 Breed
Dog #2 ColorGroup 3 with the following 2 fields:
Dog #3 Breed
Dog #3 ColorI want to have a single field on the Search form labeled “Dog Breed”, but I want the query to retrieve the results from the following 3 xprofile fields: ‘Dog Breed’, ‘Dog #2 Breed’, and ‘Dog #3 Breed’… that are each part of a separate group.
My website’s design requires that I maintain separate groups for those xprofile fields. But I do not want to include all 3 of the above-mentioned fields on the Search form, because that would look silly. I simply want a user to be able to enter a keyword (such as ‘Terrier’) in a single field called ‘Dog Breed’ and have the search query return the results from the Dog Breed that’s located on ANY group in a member’s profile (i.e., retrieve from ‘Dog Breed’, ‘Dog #2 Breed’, and ‘Dog #3 Breed’ fields that are in separate groups). And I want to do the same type of thing for the ‘Dog Color’ field.
I really hope this is possible for me to do by simply modifying your query somewhere to add an ‘and’ clause in order to include all 3 fields in the query? Your help would be greatly appreciated!!!
- The topic ‘How to search multiple fields in diff. groups using same keyword?’ is closed to new replies.