Title: conditional search
Last modified: September 1, 2016

---

# conditional search

 *  Resolved [kida18](https://wordpress.org/support/users/kida18/)
 * (@kida18)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/conditional-search/)
 * Hi there,
    This is a great plugin! However I’m looking for a way to add conditioning
   filtering in my searches. At the moment, I have 4 fields searchable but there
   is no AND connection between them, only OR. I’m not a developer but I believe
   this is called the Boolean relationship between the queries? For instance, I 
   can’t search all the users that live in California AND have a dog, I can only
   see all the users that live in California OR have a dog. I found other plugins
   which includes that type of conditions but they are not compatible with buddypress
   fields (or not all at least) : Ultimate WP Query Search Filter and AJAX Search
   Pro.
 * Is this something that you would consider developing in the future? Or would 
   there be an easy way for me to alter the code to include this boolean relationship?
 * For information, I’d be ready to pay to see such a plugin, I have checked everywhere
   and it doesn’t seem to exist as of yet.
 * Thanks in advance
 * [https://wordpress.org/plugins/bp-profile-search/](https://wordpress.org/plugins/bp-profile-search/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/conditional-search/#post-7534389)
 * Hi kida18,
 * BP Profile Search works only with AND conditions, that is it finds all the users
   that live in California AND have a dog AND match all the other conditions in 
   your search form.
 * Isn’t this what you need? Please feel free to add more details if I haven’t understood
   your question correctly.
 *  Thread Starter [kida18](https://wordpress.org/support/users/kida18/)
 * (@kida18)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/conditional-search/#post-7534397)
 * Hey Andrea,
    Yes it works! Yesterday when I tested it, it was showing me results
   based on a OR search only. Strange. Thanks for answering so fast
 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/conditional-search/#post-7534408)
 * You are welcome! Please come back here if you can reproduce your original issue.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘conditional search’ is closed to new replies.

 * ![](https://ps.w.org/bp-profile-search/assets/icon.svg?rev=1568973)
 * [BP Profile Search](https://wordpress.org/plugins/bp-profile-search/)
 * [Support Threads](https://wordpress.org/support/plugin/bp-profile-search/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-profile-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-profile-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-profile-search/reviews/)

## Tags

 * [boolean](https://wordpress.org/support/topic-tag/boolean/)
 * [conditional](https://wordpress.org/support/topic-tag/conditional/)

 * 3 replies
 * 2 participants
 * Last reply from: [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/conditional-search/#post-7534408)
 * Status: resolved