Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 5 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 3 months ago.

Assisted by: Prosenjit Barman.

Author Posts
February 10, 2024 at 12:09 am #15287867

psychonL

I have added a new ACF repeater field, but when edit a field and save the post in the original language, the field is not translated, or copied (I tried both options), to the secondary language. I have the field group set to "same fields across all languages". It was not initially set, as I added ACF Multilingual after adding the field initially.

Here are my steps:

1. Field added (original language only)
2. Posts updated with content
3. Added WPML multilingual (not sure if this matters)
4. Duplicated field (secondary language)
5. Field does not force translation

Also, I did notice that despite the field group set to "same fields across all languages", in the "WPML -> Definitions" the field is set to "copy" and cannot be changed (the "copy" function doesn't seem to work either).

See attached.

WPML-acf-issue3.jpg
WPML-acf-issue2.jpg
WPML-acf-issue.jpg
February 11, 2024 at 4:25 pm #15290281

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're having and will try my best to assist you in this matter.

The ACF fields will only appear locked if the Translation preference is set to 'Copy'. Based on the screenshot, I noticed that the Translation option for the filed group is set to "Same fields across languages". Therefore, the "Copy" preference will be set to all fields within this field group by default. Check the link below for more details: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/#pre-set-translation-preferences

Based on the WPML Debug Info, I've noticed that the translation preference for the ACF File Group post type is currently set to "Translatable," which we don't recommend. Having duplicated/translated field groups can lead to complications in the translation process. If you're considering altering the translation preference for the field, please follow the steps below, which should assist in addressing the issue.

- Delete the translated field group and set the translation preference for the "acf-field-group" post type to "Not Translatable" by following the information outlined here: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/expert-translation-option/#field-group-translation-settings
- After that, navigate to "ACF → Field Group" and open the Field group which includes the specific field.
- At the top, there is an option to modify the Translation mode. Click on the "Change Option" link there.
- Choose the "Expert" mode from the available options.
- After selecting "Expert" mode, scroll down to the field you want to change the translation settings for.
- Change the translation preference for the field to "Translate' and save your changes.

Please let me know if that helps to solve the issue or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

February 11, 2024 at 9:28 pm #15290660

psychonL

Hi Prosenjit,

Thank you. I followed the steps and removed the field groups in the secondary language, and set field group post type to "do not translate". I changed the field group translation mode to "expert mode" and set the field to "translate".

The result is as you can see in the images. As you can see, when I look at the field in the primary and secondary language, they are different. It doesn't seem to matter whether I set the field to "translate" or "do not translate".

What I want is for the field to always be the same across languages. It doesn't even need to be translated. But for some reason, whatever change I make to the primary language on that field doesn't seem to be affecting the secondary language.

WPML-acf-issue-6.png
WPML-acf-issue-5.png
February 13, 2024 at 5:10 am #15295440

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for the update.

If you want the selection to be the same in translation as well, the translation preference for the field has to be "Copy". Otherwise, the value will not be copied to the translation.

After looking at the screenshots you shared, I noticed that within the "Project Image" repeater field, there is a Taxonomy Type field named "Tratamentos" used for selecting the taxonomy terms.

Please note, that we have traced an issue with the Taxonomy type field where the terms selections are not being copied to the translations. This issue has been forwarded to our development team for detailed examination and resolution.

Currently, the temporary solution to address this issue involves marking the taxonomy as translatable and then translating the meta-information. During the translation process, it's necessary to include the ID of the translated taxonomy, instead of saving the ID of the default taxonomy in the translation. Please check the solution explained here: https://wpml.org/forums/topic/acf-field-type-taxonomy-translation-option-copy-not-working/#post-8173547

I'm going to add this ticket to our development ticker to prioritize the issue. While we cannot provide an ETA for a permanent solution at this moment, rest assured, you will be promptly informed as soon as there are any updates.

Please let me know if you need further assistance or clarification in this matter. I will be happy to help.

Best regards,
Prosenjit

February 14, 2024 at 9:57 pm #15304495

psychonL

Thanks Prosenjit.

I've attempted to set the field type "gallery image" to Copy. That doesn't seem to do anything. Is the expected functionality that the data is copied instantly when publishing in the original language, or do you need to go through translation process? Either way, this is what I did:

1. In ACF, I set Gallery Image field to Copy
2. In ACF, I set Tratamentos field to Translate
3. Note that the repeater field group is set to "do not translate"
4. In the post, I added a new Gallery Image, checked off Tratamentos, and published.
5. Approved translation
6. The gallery image is not added in the secondary language, nor is any taxonomy changed.

So the issue isn't just the taxonomy, but also either the repeater field, or the image. Please verify that the settings in steps 1,2,3 are correct.

As to your last point, the terms have no additional metafields to translate. Would you be able to provide documentation on adding translatable metafields?

Thanks again.

WPML-acf-issue-7.png
February 15, 2024 at 7:24 am #15305131

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for the detailed update.

Based on the details you've provided, it appears that the "Project Image" repeater field is set to "Do Not Translate," which might be why its information isn't being copied to the translations. Could you please change the translation setting for this repeater field to "Copy" and then see if the information carries over after you update the translation?

Regarding the issue with the Meta field not being visible, navigate to "WPML > Settings > Custom Term Meta Translation," adjust the translation setting for the term meta field to "Translatable," and save your changes. The Meta fields should become visible after this adjustment.

Please let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

The topic ‘[Closed] Some custom fields in field group do not translate’ is closed to new replies.