I'm trying to create a dropdown search field that finds yachts based on their length. Their length is an integer that represents meters and I want to return all boats that have a length between 2 values. My first problem is that whenever I enter custom values for the dropdown, the custom values are not showing up at all. My second issue is that I also want to add in functionality to the search to convert between meters and feet. How would I go about doing that?
Thank you for getting in touch. My first problem is that whenever I enter custom values for the dropdown, the custom values are not showing up at all.
This I would need to log into your website so that I can have a look to check and see what the issue is. I've enabled the private fields for your next response.
My second issue is that I also want to add in functionality to the search to convert between meters and feet. How would I go about doing that?
I wouldn't be able to assist with this one as this would require a complete custom solution in order to achieve.
In order to not make any changes on your live site I will like to grab a copy of the site where I can test it safely here in a controlled environment to identify the issue.
Please let me know if I can go ahead and install the duplicator plugin to grab the copy.
I found the issue. The reason why you are having this problem is because you have this option enabled.
In my copy I disabled it on the Archive view by clicking on the view itself and scrolling to the Custom Search Settings. See Screenshot
You are using manually entered values for the fields and as such they won't exactly match what is stored in the database, hence the fields showing up blank.
I've also tested the search and it works fine with this setting disabled.