Background of the issue:
I am trying to translate a page containing content built with ACF flexible content and clone fields. The structure includes a flexible content field ('content_blocks') with a layout ('rich_content_block'). Inside this layout, a clone field ('rich_content') pulls in fields from another field group. Within that field group, another clone field ('intro_block') pulls in fields from a third field group. The third field group contains the WYSIWYG field ('intro') that needs translation. All fields are set to 'Translate' in WPML's settings. This project is currently only local, so I'm unable to provide a link to a specific page. Here's an example of the XLIFF output that I see: <code> <trans-unit resname="Content Blocks 0" restype="string" datatype="html" id="field-content_blocks-0-0" extradata="{"unit":"Content Blocks 0","type":"custom_field","group":"Custom Fields","group_id":"Custom_Fields-0"}"> <source><![CDATA[rich_content_block]]></source> <target><![CDATA[rich_content_block]]></target> </trans-unit> </code>
Symptoms:
The content of the 'intro' field is not included in the XLIFF file when exporting the page for translation. The XLIFF file only shows the layout names, but not the actual content of the 'intro' field. The field is also missing from the list of translatable custom fields in WPML's settings (WPML -> Settings -> Custom Fields Translation).
Questions:
Why is the 'intro' field not included in the XLIFF file?
Why is the 'intro' field missing from the list of translatable custom fields in WPML's settings?
- Make sure you have a backup.
- Disable all other plugins and leave active only WPML plugins and ACF
- Switch to WP default theme
- Check if the issue still happens
- Check if the issue still happens on a new test page
2)
What is the translation mode for these ACF field groups? If it is expert try setting to the same field across languages mode and check if the issue still happens.
Let me know how it goes.
Regards,
Drazen
The topic ‘[Closed] WPML is not correctly registering and translating a WYSIWYG field that is deeply nested within multi…’ is closed to new replies.