Problem: I would like to create a custom taxonomy term select system in a Form. The parent terms should be listed in one custom select field, and each group of child terms should be listed in a separate select field.
Solution:
Use generic fields to produce the conditional select fields of parent and child terms. Then use the Forms API to capture the selected parent and child terms and store them using wp_set_object_terms.
On the front-end, you can use a View of terms filtered by term ID, supplied by a shortcode attribute, to display information about the selected child term.
Relevant Documentation:
https://toolset.com/forums/topic/parent-child-term-taxonomies-on-cred-and-views/
https://toolset.com/forums/topic/display-taxonomy-associated-with-port-parent/
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
https://codex.wordpress.org/Function_Reference/wp_set_object_terms
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 30 replies, has 3 voices.
Last updated by 5 years, 10 months ago.
Assisted by: Christian Cox.