Problem:
How to display the label (Display Text) of the select tag of a particular post within another post in PHP
Solution:
You can use the shortcode below:
[types field="email" id="7" show_name="true"][/types]
Replace the field name with the slug of the field that you want to display.
The ID should be the id of the post that you want to display the value of the field.
In PHP to run the shortcode you can use:
https://developer.wordpress.org/reference/functions/do_shortcode/
Relevant Documentation:
https://toolset.com/documentation/customizing-sites-using-php/functions/#select
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.
This topic contains 4 replies, has 2 voices.
Last updated by 2 years, 9 months ago.
Assisted by: Christopher Amirian.