Problem:
The issue here is that the user wanted to display their taxonomy term meta from a php template.
Solution:
The correct code to use here is.
echo types_render_termmeta( "my-image-field", array() );
Where my-image-field is the slug of the field that was created in Types.
For further details on this you can have a look at our documentation below.
https://toolset.com/documentation/customizing-sites-using-php/functions/#image
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 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
| - | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Zeitzone des Unterstützers: America/Jamaica (GMT-05:00)
Dieses Thema enthält 3 Antworten, hat 2 Stimmen.
Zuletzt aktualisiert von vor 4 years, 2 months.
Assistiert von: Shane.