Problem:
Displaying custom checkboxes field output, not texts but icon images
Solution:
It is possible within Types shortcode, for example:
[types field="color" option="0" state="checked"]Here display icon for Red[/types] [types field="color" option="1" state="checked"]Here display icon for Blue[/types] [types field="color" option="2" state="checked"]Here display icon for Yellow[/types]
More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#checkboxes
Attribute: "option"
"zero-based index number"
e.g. option=”0″ Will output the value for the option number specified. For checkboxes, will display the checked valued of the nth checkbox in the group.
Relevant Documentation:
https://toolset.com/documentation/customizing-sites-using-php/functions/#checkboxes
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 |
---|---|---|---|---|---|---|
- | 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: Asia/Hong_Kong (GMT+08:00)
This topic contains 7 replies, has 2 voices.
Last updated by 6 years, 8 months ago.
Assisted by: Luo Yang.