Multilingual ACF fields with MULTIGURA
MULTIGURA works with Advanced Custom Fields without a separate translation interface. Every translation is an ordinary post with its own field values, so you fill in the fields of each language in the same editor you already use. Fields that point to other posts show the right language on the site by themselves.
What gets translated
- Values of all field types on posts, pages and custom post types: text, textarea, WYSIWYG, image, file, link and the rest
- Sub fields of repeater, group and flexible content fields
- Relationship, Post Object and Page Link fields, which show the translation in the current language
- Taxonomy fields, which show term names in the language of the post
Field values per language
ACF keeps field values as post meta, and in MULTIGURA every translation is a post of its own. Each language therefore has its own values: a heading, a text or an image can differ between languages, while the field groups and their settings are the same for all of them.
When you create a translation, the Custom Fields [ Meta ] option of the Duplicate box copies the values of the original, so you only replace the texts.
Fields that point to other posts
Relationship, Post Object and Page Link fields store post IDs. On the site, MULTIGURA replaces each ID with its translation in the current language before ACF formats the value, also inside repeater, group and flexible content fields. A post without a translation in that language shows the original.
Because of this, a translation can keep the IDs copied from the original: the Georgian page still shows Georgian posts. In the admin, the choices of these fields list posts in the language of the post you are editing.
Options pages
An ACF options page is one for all languages. Keep texts that differ by language in separate fields for each language, for example a group with one sub field per language, or in translatable posts.
Compatibility
- ACF and ACF PRO 6.0 or newer, tested with ACF PRO 6.8.
- Works with field groups saved in the database, in Local JSON or registered in PHP.
- The integration loads only when ACF is active.
Setup
- Activate ACF or ACF PRO and MULTIGURA. The integration starts by itself.
- In the MULTIGURA settings, open General → Translatable content and add the post types that use your field groups to Post types.
- Open a post and create a translation in the Translation box. To copy the field values, check Custom Fields [ Meta ] in the Duplicate box.
- Translate the texts in the fields and publish the translation.
Frequently asked questions
Do I need to duplicate my field groups for each language?
No. Field groups and their settings are shared by all languages. Only the values belong to each translation.
What happens if a related post has no translation?
The field shows the original post, so the page never loses a link or a block of content.
Can I translate an options page?
An options page is shared by all languages. For texts that change by language, use separate fields for each language or translatable posts.
Does it work with flexible content and repeaters?
Yes. Sub fields of repeater, group and flexible content fields are handled like any other field, relationship sub fields included.