Problem:
Display category custom field for custom post type using PHP
Solution:
To display the term field using PHP - the correct way is to use the Types field API function: types_render_termmeta()
You can find the proposed solution in this case with the following reply:
https://toolset.com/forums/topic/display-category-custom-field-for-custom-post-type-using-php/#post-2007069
Relevant Documentation:
=> https://toolset.com/documentation/user-guides/views/displaying-wordpress-term-fields/#displaying-term-fields-with-types-api
=> 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.
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 |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10: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/Kolkata (GMT+05:30)
This topic contains 2 Antworten, has 2 Stimmen.
Last updated by chrisH-10 vor 2 Jahre, 5 Monate.
Assigned support staff: Minesh.