Title: Using Checkbox
Last modified: August 21, 2016

---

# Using Checkbox

 *  Resolved [dannykater](https://wordpress.org/support/users/dannykater/)
 * (@dannykater)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-checkbox/)
 * Hi there,
 * When I use the checkbox as the Display Type, I get an error:
 * Warning: stripslashes() expects parameter 1 to be string, array given in /public/
   sites/www.travel-alpine.com/wp-content/plugins/ultimate-wp-query-search-filter/
   classes/uwpqsf-process-class.php on line 32
 * What’s going wrong?
 * Thanks.
 * [https://wordpress.org/plugins/ultimate-wp-query-search-filter/](https://wordpress.org/plugins/ultimate-wp-query-search-filter/)

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

 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-checkbox/#post-4923873)
 * You should use “IN” compare operator for checkbox display.
 *  Thread Starter [dannykater](https://wordpress.org/support/users/dannykater/)
 * (@dannykater)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-checkbox/#post-4923891)
 * Thanks TC.K,
 * IN works on a single value, but not on a range? For me it works with 1::Yes |
   2::No but not with for example:
 * 0-50::€50 en lager | 50-60::€50 – €60 | 60-70::€60 – €70 | 70-80::€70 – €80 |
   80-90::€80 – €90 | 90-100::€90 – €100 | 100-125::€100 – €125 | 125-150::€125 –
   €150 | 150-10000::€150 en hoger
 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-checkbox/#post-4923896)
 * Yes, checkbox only work at single value. Between can’t use checkbox.
 *  Thread Starter [dannykater](https://wordpress.org/support/users/dannykater/)
 * (@dannykater)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-checkbox/#post-4923901)
 * Any other way to do this?
 * I can imagine people often need to be able to check different, for example, price
   ranges. They might be interested in different price ranges in stead of just one
   range.
 * I’ve got it working not with Radio, but would be great to get it done with Checkbox!
 * Thanks!
 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-checkbox/#post-4923908)
 * No, I don’t think so. If you want to search for the wider range, maybe you can
   define your options as follow:
 *     ```
       1-10 :: $1-$10 |
       1-100 :: $1 - $100 |
       1-200 :: $1 - $200
       ..etc
       ```
   
 * Or you can use the [range addon](http://9-sec.com/showcase/?page_id=159), where
   user can defined the range they want to search.
 *  Thread Starter [dannykater](https://wordpress.org/support/users/dannykater/)
 * (@dannykater)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-checkbox/#post-4923912)
 * Looks good. I’ll have a look at the add-on!
 * Is it technically impossible to have BETWEEN with a checkbox? Planning to develop
   this, or not?
 * Thanks.
 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-checkbox/#post-4923916)
 * No, it’s unlikely to implement it. It’s too complicated due to the way WP handle
   the data.
 *  Thread Starter [dannykater](https://wordpress.org/support/users/dannykater/)
 * (@dannykater)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/using-checkbox/#post-4923937)
 * Thanks

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

The topic ‘Using Checkbox’ 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/)

## Tags

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

 * 8 replies
 * 2 participants
 * Last reply from: [dannykater](https://wordpress.org/support/users/dannykater/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/using-checkbox/#post-4923937)
 * Status: resolved