Similar to other fields I want a default label which shows the fields purpose.
My field is defined like:
[wpv-control-postmeta field="estate_property_bedrooms" type="select" source="custom" default_label="Min. bedrooms" url_param="wpv-estate_property_bedrooms" values="2,3,4,5,6,7,8,9,10," display_values="2,3,4,5,6,7,8,9,10,"]
Problem: In the frontend it just shows "Select an option" instead fof "Min. bedrooms".
Hello,
I have tried your codes, it works fine in my localhost, it does display "Min. bedrooms" as the default option, see screenshot: default_label.JPG
In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2017, and test again
Hello Luo,
Thank you.
The problem is somehow related to the Chosen library, which doesn't respect the correct values there.
Thanks,
Adrian
----
Edit: Ah,
I found another issue for the manual dropdown. I had an empty value after the last value, with empty label.
Wrong:
[wpv-control-postmeta field="estate_property_bedrooms" type="select" source="custom" placeholder="Min. bedrooms" default_label="Min. bedrooms" url_param="wpv-estate_property_bedrooms" values="2,3,4,5,6,7,8,9,10," display_values="2,3,4,5,6,7,8,9,10,"]
Correct:
[wpv-control-postmeta field="estate_property_bedrooms" type="select" source="custom" placeholder="Min. bedrooms" default_label="Min. bedrooms" url_param="wpv-estate_property_bedrooms" values="2,3,4,5,6,7,8,9,10" display_values="2,3,4,5,6,7,8,9,10"]