Problem: I have a custom radio field with 3 options. I have more information for each option, saved in custom fields. I would like to display that information on the post.
Solution: Create a custom post type and add the custom fields to this new custom post type. Create 3 posts in this CPT and add the information to each post's custom fields. Then make the custom field values equal the 3 post IDs. Use the selected radio field value to display the custom fields.
[types field="number-of-beds" id="[types field='room' output='raw'][/types]"][/types]
Relevant Documentation:
https://toolset.com/documentation/customizing-sites-using-php/functions/
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 |
---|---|---|---|---|---|---|
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)
Dieses Thema enthält 2 Antworten, hat 2 Stimmen.
Zuletzt aktualisiert von vor 6 Jahren, 2 Monaten.
Assistiert von: Christian Cox.