Problem:
The user has a term field to store an icon and he would like to display the icon next to the term in taxonomy archives.
Solution:
It turns out that icon field is actually a WYSIWYG field and will always be subject to filtering, which will add
tags which will make the term title appears on the following line. This requires using the arguments output="raw" and suppress_filters="true" on the types shortcode:
[types termmeta="resource-type-icon" output="raw" suppress_filters="true"][/types]
Relevant Documentation:
https://toolset.com/documentation/customizing-sites-using-php/functions/#wysiwyg
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)
This topic contains 3 replies, has 2 voices.
Last updated by 4 years, 6 months ago.
Assisted by: Jamal.