Skip Navigation

[Résolu] How do I show the options of a select field to a user?

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
The user would like to have a field that can accept all the states and would like a better way to reuse it across the Toolset data.

Solution:
Use a custom taxonomy, instead of a custom field, to store all the states and assign this taxonomy to the custom post types that will need it.

Relevant Documentation:

This support ticket is created Il y a 4 années et 3 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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

Supporter timezone: Africa/Casablanca (GMT+01:00)

Marqué : 

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

Dernière mise à jour par DM Il y a 4 années et 3 mois.

Assisté par: Jamal.

Auteur
Publications
#1760553

DM
Screen Shot 2020-08-28 at 12.38.26 PM.png
Screen Shot 2020-08-28 at 12.38.16 PM.png

I have a Select field configured in toolset with a list of all states. I'd like to display these options on a search form to the user in a dropdown menu so they can select from that list of options. Right now, I have to manually create the dropdown menu for the user and maintain the list of options in the custom field, but I'd imagine this is duplicative.

I can't seem to find any documentation or examples on how to do this, is it possible?

#1760587

Hello and thank you for contacting the Toolset support.

I would suggest using a custom taxonomy to store all the states and assign this taxonomy to the custom post types that will need it.

Read more about taxonomies in the following articles:
- https://toolset.com/glossary/taxonomy/
- https://wordpress.org/support/article/taxonomies/

Here an article on how to create a custom taxonomy
https://toolset.com/course-lesson/creating-a-custom-taxonomy/

I hope this helps. Let me know if you have any questions.

#1760685

DM

My issue is resolved now. Thank you!