Saltar navegación

[Resuelto] How do I show the options of a select field to a user?

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 4 años, 5 meses. 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 – 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)

Etiquetado: 

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por DM hace 4 años, 5 meses.

Asistido por: Jamal.

Autor
Mensajes
#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!