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.

Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 -

Supporter timezone: Europe/Madrid (GMT+02:00)

This topic contains 5 replies, has 0 voices.

Last updated by Carlos Rojas 5 days, 12 hours 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