Passer la navigation

[Résolu] Create Custom Dropdown from Custom fields

This support ticket is created Il y a 4 years, 7 months. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Fuseau horaire du supporter : America/Jamaica (GMT-05:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par mohamedE-6 Il y a 4 years, 7 months.

Assisté par: Shane.

Auteur
Publications
#2224183
custom_fields.png

Hi, I have created custom field types (dropdown) and want to use the entries on a script in another plugin (functions.php) . How can I select the fields values and use this in my custom plugin module ? I created a custom field from Toolset > Custom Fields. Please see below image for further info. Thanks

#2224301

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Mohamed,

Thank you for getting in touch.

It won't be possible to pull this list directly as it is stored in the wp_options table inside the database and there isn't an API available to pull the list from there.

We can only pull the selected value on a custom post type when viewing a post but not the entire list as it is stored in the field options.

Thanks,
Shane

#2224645

My issue is resolved now. Thank you!