Title: Checkbox not workink
Last modified: December 23, 2016

---

# Checkbox not workink

 *  Resolved [alantygel](https://wordpress.org/support/users/alantygel/)
 * (@alantygel)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/checkbox-not-workink/)
 * Hi,
 * In my website, when adding a Meta Field, choosing radio or dropdown works fine.
   However, if I just change to checkbox, no result is found. I noticed that there
   is a warning:
 * `stripslashes() expects parameter 1 to be string, array given`
    at `wp-content/
   plugins/ultimate-wp-query-search-filter/classes/uwpqsf-process-class.php:81`
 * Looks like there is something wrong on building the array.
    The URL when radio
   is set is:
 * [http://beiras.localhost/?unonce=d70ab3da54&uformid=820&s=uwpsfsearchtrg&cmf%5B0%5D%5Bmetakey%5D=duracao&cmf%5B0%5D%5Bcompare%5D=11&cmf%5B1%5D%5Bmetakey%5D=tipo&cmf%5B1%5D%5Bcompare%5D=1&cmf%5B1%5D%5Bvalue%5D=Fotografia&skeyword=](http://beiras.localhost/?unonce=d70ab3da54&uformid=820&s=uwpsfsearchtrg&cmf%5B0%5D%5Bmetakey%5D=duracao&cmf%5B0%5D%5Bcompare%5D=11&cmf%5B1%5D%5Bmetakey%5D=tipo&cmf%5B1%5D%5Bcompare%5D=1&cmf%5B1%5D%5Bvalue%5D=Fotografia&skeyword=)
 * and 1 result is found. When checkbox is set, with the same single option as above,
   the URL is:
 * [http://beiras.localhost/?unonce=d70ab3da54&uformid=820&s=uwpsfsearchtrg&cmf%5B0%5D%5Bmetakey%5D=duracao&cmf%5B0%5D%5Bcompare%5D=11&cmf%5B1%5D%5Bmetakey%5D=tipo&cmf%5B1%5D%5Bcompare%5D=1&cmf%5B1%5D%5Bvalue%5D%5B%5D=Fotografia&skeyword=](http://beiras.localhost/?unonce=d70ab3da54&uformid=820&s=uwpsfsearchtrg&cmf%5B0%5D%5Bmetakey%5D=duracao&cmf%5B0%5D%5Bcompare%5D=11&cmf%5B1%5D%5Bmetakey%5D=tipo&cmf%5B1%5D%5Bcompare%5D=1&cmf%5B1%5D%5Bvalue%5D%5B%5D=Fotografia&skeyword=)
 * and nothing is found. The only difference is a “[]” after “value” in the second
   case.
 * thanks in advance,
    alan

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

 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/checkbox-not-workink/#post-8585917)
 * If you want to use checkboxes for meta field search filter, you have to use ‘
   IN’ compare operator.
 *  Thread Starter [alantygel](https://wordpress.org/support/users/alantygel/)
 * (@alantygel)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/checkbox-not-workink/#post-8585938)
 * great, thanks!

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

The topic ‘Checkbox not workink’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ultimate-wp-query-search-filter_fcfcfc.
   svg)
 * [Ultimate WP Query Search Filter](https://wordpress.org/plugins/ultimate-wp-query-search-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-wp-query-search-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [alantygel](https://wordpress.org/support/users/alantygel/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/checkbox-not-workink/#post-8585938)
 * Status: resolved