• I’ve created a search filter based on custom fields which searches through price values using the BETWEEN comparing method. The problem came when I mchanged the displaying type. Everything was working ok when I had it as a dropdown, but when I changed it to checkbox it gives me the following error message:

    Warning: stripslashes() expects parameter 1 to be string, array given in /home/u795059424/public_html/wp-content/plugins/ajax-wp-query-search-filter/classes/process.php on line 55 Nothing Found

    You can check the issue at this website: http://www.rodadosfueguinos.com.ar

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author TC.K

    (@wp_dummy)

    You shouldn’t use checkboxes for Between type of comparator. The WP_Query only handle one pair of values for comparison. If you use checkboxes, there are possible many pair of values submitted, thus the wp_query will not work.

    Ohhu, that’s shame, because I liked the idea of comparing different pairs at the same time :S

    Thanks for the quick response ;D

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘BETWEEN and checkbox issue’ is closed to new replies.