AyeCode / geodirectory

GeoDirectory is the leading Directory Plugin for WordPress. Compatible with Gutenberg and the most popular page builders such as Elementor, Oxygen, Beaver Builder and Divi. GeoDirectory is the only solution for WordPress that can scale to millions of listings and high traffic.
https://wpgeodirectory.com/
Other
41 stars 22 forks source link

Select fields should also support value => label option types #1321

Open picocodes opened 4 years ago

picocodes commented 4 years ago

Currently, select fields only support separating options via commas, e.g option 1, option 2. I would be great if it could also support differentiating option values and the labels.

option-1-value|option 1 label, option-2-value|option 2 label, option 3 value and label, option 4

alexrollin commented 4 years ago

Would this be a place to ask for font icon support for option labels?

kprajapatii commented 4 years ago

Select / multiselect fields already support label & value in option values.

Example: Label 1/value-1,Label 2/value-2,Label 3/value-3 etc.

See https://github.com/AyeCode/geodirectory/blob/master/includes/admin/settings/class-geodir-settings-cpt-cf-extras.php#L508

@picocodes

picocodes commented 4 years ago

@kprajapatii thanks I missed it.