Reply To: Range Sliders based on Particular Taxonomy Chosen

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Range Sliders based on Particular Taxonomy Chosen Reply To: Range Sliders based on Particular Taxonomy Chosen

#13235
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi,

Thank you very much.

I have good news. The price is nicely stored as a number in the ‘real_estate_property_price’ custom field, makes it really easy to filter it.

What I did was the following:
– I’ve made a ‘price from’ and a ‘price to’ input filters on that field, you can check them on the back-end: From price and To price configuration
– This was already working, but of course it allowed non-numerical values, so I’ve quickly made a both front-end and back-end input validation script, now you can test the final form here: http://bookingzone.co.za/
– The custom code can be found in the public_html\wp-content\themes\twentyseventeen\functions.php file from lines 12 to 56. You will need these in the production environment as well. I have copied these lines into this gist as well, you can copy it from there as well (copy from line 3).
You need to add these lines to the functions.php file in the active theme directory.

And basically that’s it, very simple, but working input validation and filter.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)