Problem: I have several custom fields. I would like to know the best way to handle displaying their names and values, considering I will be using WPML and translating the fields.
Solution:
Use the wpml-string shortcode to register the field names for translation in String Translation. Register the fields for translation in Translation Management. Use the format "FIELD_VALUE" for the numeric field.
[wpml-string context="some-domain"]Axle:[/wpml-string] [types field="axle" format="FIELD_VALUE"][/types]<br /> [wpml-string context="some-domain"]Type:[/wpml-string] [types field="type"][/types]<br /> [wpml-string context="some-domain"]Brand:[/wpml-string] [types field="brand"][/types]<br />
Relevant Documentation:
https://toolset.com/documentation/translating-sites-built-with-toolset/
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 |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 4 replies, has 2 voices.
Last updated by 6 years, 6 months ago.
Assisted by: Christian Cox.