Problem: I would like to use two Forms to create posts in the same custom post type. One Form should be in French, and the other Form should be in English. I am considering using two different field groups, one for each language. I am not using a 3rd-party multilingual system or plugin.
Solution: Only create one Form and one Field Group. Use conditional HTML in the body of the Form to hide or show different translations based on the current page ID. Consider adding both languages to the option titles.
<div class="form-group"> <label> [wpv-conditional if="('[wpv-post-id]' eq '12345')"]Book Title[/wpv-conditional] [wpv-conditional if="('[wpv-post-id]' eq '67890')"]Titre de Livre[/wpv-conditional] </label> [cred_field field="post_title" class="form-control" output="bootstrap"] </div>
Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-id
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, 1 month ago.
Assisted by: Christian Cox.