Skip Navigation

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

Problem:
The client is using ACF with WPML and has set the Multilingual Setup to 'Expert' and the Translation preferences to 'Don't translate' or 'Copy'. Despite these settings, WPML still requires the translation of all ACF field choices.
Solution:
1) Add the following code to your wp-config file:

define( 'ACFML_EXCLUDE_FIELD_GROUP_STRINGS_IN_POST_JOBS', false );

This code aims to remove the ACF label strings from the translation editor, although you can still translate them via WPML-> String Translation if needed. For more details, check the guide on AFCML core reference.
2) After adding the code, make a minor edit to the page/post in the default language and send it to translation.
3) If the issue persists, it may be necessary to recreate the page containing the ACFs and translate it again to ensure the changes take effect.

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum.

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 5 replies, has 0 voices.

Last updated by Carlos Rojas 1 week, 1 day ago.

Assisted by: Carlos Rojas.

Author Posts
March 24, 2025 at 6:10 pm #16853632

janK-52

<b>Background of the issue: </b>
I am using ACF and want to disable the translation of field choices. I have set the Multilingual Setup to 'Expert' and the Translation preferences to 'Don't translate' or 'Copy'.

<b>Symptoms: </b>
Regardless of whether I choose 'Don't translate' or 'Copy', WPML requires me to translate all field choices.
See: hidden link

<b>Questions: </b>
How can I disable the translation of ACF field choices?

March 26, 2025 at 2:18 am #16860342

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) Please add the following code to the wp-config file.

define( 'ACFML_EXCLUDE_FIELD_GROUP_STRINGS_IN_POST_JOBS', false );

Kindly check this guide to know more about AFCML core reference.

After that, please make a minor edit to the page/post in the default language and send it to translation.

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.

Best regards,
Osama

March 28, 2025 at 7:10 pm #16874429

janK-52

Hi Osama,

thanks for your reply.

I added the code to the wp-config file and made a minor edit to the page in the default language and send it to translation.

It did not work, I still have to translate all ACF options.

Please note that I do not want a global solution, there might be some fields that I want to translate in the future.

Why do I have to add a code, if WPML offers the option to select "dont translate"?

In the debug information I see this:

"videodatei_mp4": 0,
"_videodatei_mp4": 1,
"videodatei_webm": 0,
"_videodatei_webm": 1,

Those are the fields I set to "dont translate".

Is 0 1 0 1 correct?
Shouldnt it be 0 0 0 0?

Just an idea. 🙂

Looking forward to your reply.

Thanks,
Jan

March 29, 2025 at 12:32 am #16874768

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Jan,

This code is to remove the ACF labels strings from the translation editor, but you can still translate them via WPML-> String Translation.

Best regards,
Osama

March 29, 2025 at 1:48 pm #16875377

janK-52

Hi Osama,
okay, they can stay.
How to remove the field choices?
Thanks, Jan

March 31, 2025 at 11:39 am #16878997

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello Jan,
My name is Carlos, and I will continue working on this ticket because my colleague Osama is on vacation.

I kindly ask you to re-create the page that contains the ACFs, translate it, and double-check if the issue disappears.

Note: Sometimes the translated ACFs are not affected by the changes in the configuration, so the content (posts/pages) must be re-created so the changes can take effect.

Looking forward to your feedback.
Regards,
Carlos