Problem:
The issue here is that the user wanted to render their custom field value using php. However with the function types_get_field_meta_value() it was rendering the field but not with the current language defined by WPML.
Solution:
I'm not aware of a types_get_field_meta_value() function to render the custom fields, however the correct function would be types_render_field()
This will allow the correct translations to be displayed as well.
I would recommend checking out the documentation for it as well.
https://toolset.com/documentation/customizing-sites-using-php/functions/
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 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 4 replies, has 2 voices.
Last updated by 5 years, 10 months ago.
Assisted by: Shane.