Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue where all ACF fields are showing in all languages on their WordPress site with WPML and ACF. Specifically, a field named 'Produkt-Aufbau' is visible and selectable in both German and English versions of a page, causing conflicts when saving the selected options.
Solution:
We identified that the issue was due to the translation of the 'Aufbau' field group, where fields in each group had the same name. To resolve this, we changed the name of the 'Aufbau' field in the English version of the field group to 'aufbau-en'. This change allowed the selected options from the German field group to be saved correctly. We recommend not translating the ACF field group to avoid such issues. Instead, set the translation preference for the field group post type to 'Not Translatable' in WPML > Settings. Field labels and names can still be translated using the String Translation. For more details, please refer to our documentation on Expert Translation Option.
If you still decide to translate the field group, ensure that each field within the translated field group has a unique name.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you continue to face issues, please do not hesitate to open a new support ticket with us.

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.

This topic contains 4 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year ago.

Assisted by: Prosenjit Barman.

Author Posts
February 15, 2024 at 10:06 am #15305798

sebastianK-50

Hi

we have a WordPress site that uses WPML and ACF. Some time ago the website started showing all ACF fields in all languages. For example, we have a German and an English version and the ACF field Produkt-Aufbau. When working on a page on German you should only see the German version selectable and vice versa for English.
The problem also is that when selecting a checkbox from the German ACF field and saving the page doesn't save the checked field but it does for the English field in the German version. When I put the English field in the trash the German version saves again when a checkbox from the Produkt-Aufbau field is selected, so I think that WPML is somehow responsible for this I already tried changing the WPML settings for the fields but it doesn't seem to do anything. Is this some kinda bug or maybe a memory error? It doesn't used to look like this.

February 16, 2024 at 10:25 am #15310939

Prosenjit Barman
Supporter

Languages: English (English )

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

Hello There,
Thanks for contacting WPML Support.

I understand the problem you're having. Based on the WPML Debug Info, I found a field called "Aufbau" and I'm assuming that this is the field where you're having the issue.

The debug information shows that the translation setting for the "Aufbau" field is set to "Copy", meaning the choices made in the default language are automatically copied to the translated versions. If you wish to manually select options for this field in the translated version, you'll need to adjust the translation setting for the "Aufbau" field to "Translate". Once this is done, you'll be able to make individual selections for "Aufbau" in the secondary language.

To change the translation preference of the field properly, please follow these steps.

- Navigate to "ACF → Field Group" and open the Field group which includes the "Aufbau" 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 "Aufbau" field and change the translation preference to "Translate". Save the Changes.
- Once done, make a small change in the post/page where the field is showing. Save the changes and update the translation.

After that, try to change the value of the field from the translation and I hope it will work. Please feel free to let me know if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

February 20, 2024 at 12:14 pm #15322546

sebastianK-50

Hi,

I've followed the instructions but nothing changed.
I already changed the Translation mode and other settings multiple times.
Nothing seems to make a difference in the Backens always both fields are visible and only one works.
Maybe I'm missing something here?
I can give you Backend access if you directly want to take a look.

February 21, 2024 at 3:00 pm #15328894

Prosenjit Barman
Supporter

Languages: English (English )

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

Hello There,
Thank you for trying out the suggestions.

As the issue persists even after updating the translation settings, a closer inspection will be required to understand the root cause of the issue.

I kindly request temporary access to your site's wp-admin and FTP credentials. Additionally, please provide me with instructions on how to replicate the issue on your site. It would be beneficial to have a testing environment where the issue can be reproduced accurately.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit

February 28, 2024 at 3:43 am #15351764

Prosenjit Barman
Supporter

Languages: English (English )

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

Hello There,
Thank you for sharing the access information.

I've created a product named "WPML Support" and identified the problem. The core issue arises from translating the "Aufbau" field group, where the "Aufbau" field in each group contains the same name. On a specific page, having two fields with identical names can lead to conflicts. Once I change the name of the "Aufbau" field in the English version of the field group to 'aufbau-en'(Screenshot: hidden link), the chosen Aufbau option from the German field group now shows even after refreshing the page. Please check this video for a better understanding: hidden link

Kindly be informed that it is not recommended to Translate the ACF field Group to prevent potential complications. As the Field group contents like Field Labels, names, etc, can be translatable from the String Translation, please keep the Translation preference for the Filed Group Post type as WPML > Settings "Not Translatable". For further insight, please visit this link: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/expert-translation-option/.

If you decide to translate the field group while maintaining the same display rule in the translated field group, it's crucial to assign a unique name to each field within the translated field group.

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

Best regards,
Prosenjit