Search prices using drop-down range
-
I’ve built a search form using WP Custom Fields Search.
The form searches a number of custom fields, all of which work perfectly.. except for one.
I’ve set up a field in the search form with the following settings:
Name = Price
Data Type = Custom Field
Data Field (name of the custom field) = price_range
Field Type = Drop down
Compare = Range
Numeric = Yes (this is supposed to remove any characters such as $ from the equation)Some examples of options in the drop-down list:
- $1-$29,
- $30-$69,
- $70-$100
An example of data in my ‘price_range’ field in one of my posts could be either of the following:
$55
,or sometimes there may be more than one value such as:
$10-$14
No matter what I do, the search returns no results when using this field. It returns plenty of results when I leave this field blank.
Has anybody experienced any issues like this?
Please note, as well as the settings above, I’ve also tried a number of other combinations, such as setting ‘numeric’ to no, and removing/including the $ in the dropdown options.
https://www.ads-software.com/plugins/wp-custom-fields-search/
- The topic ‘Search prices using drop-down range’ is closed to new replies.