Title: Search Function
Last modified: December 28, 2020

---

# Search Function

 *  [briancraw](https://wordpress.org/support/users/briancraw/)
 * (@briancraw)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/search-function-76/)
 * Hi,
 * I am hoping to understand the search and filter function better. In essence I
   am trying to understand if I create various fields which can be filtered will
   searching for specific fields eliminate found results if All of the selected 
   fields someone checks when searching are not all present in a specific ad. Or
   perhaps another way of asking is how are partial matches handled. So if some 
   searches for A,B and C but only A and B are in an ad, will that be found.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/search-function-76/#post-13842989)
 * Hi,
    i understand you are asking about the custom fields search, if so then for
   the field that is an array (can have more than one value) only available search
   type in WP_Query is “IN”.
 * This means that if you will search for A, B and C then the WP_Query will find
   ads that have at least on of these checked.
 * If you would like to find ads that have all A, B and C checked then your custom
   field (the one that has A, B and C options) would need to be a taxonomy as only
   the taxonomy search in WP_Query supports the “AND” search.
 * Currently, using taxonomies in Custom Fields extension is a bit difficult but
   for January we are planning an update that will make it easier.

Viewing 1 replies (of 1 total)

The topic ‘Search Function’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/search-function-76/#post-13842989)
 * Status: not resolved