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 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 70 replies, has 2 voices.

Last updated by Andreas W. 2 weeks, 3 days ago.

Assisted by: Andreas W..

Author Posts
October 24, 2024 at 6:45 pm #16327976

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Technically, if you call a field in ACF using get_field('field_name') it is logical the the same field name should not be used more than once.

I can not tell why some fields seem to work and others not (could be the translation memory), only I can confirm that same field names can lead to fields not showing up on ATE and I have mentioned this earlier on this ticket.

It is documented here:
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/#using-same-fields-across-languages

It would be worth testing if changing the field names, then updating the fields, saving the contents and translating them again, solves this issue.

October 24, 2024 at 6:48 pm #16327980

ruiG-5

What you are saying is not true. get_field is an object and you can use the same name in different blocks.

October 24, 2024 at 7:04 pm #16328021

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

From our ACF documentation:

Make sure each of the custom fields across your different field groups has a unique Field Name. If you use the same Field Name with more than one custom field, you may not see all your field values available for translation in the Advanced Translation Editor.

If you check WPML > Settings > Custom Field Translation, you will see that each field is registered with its name. If the same field exists more than once, we can not controle it from here.

October 25, 2024 at 10:22 am #16330114

ruiG-5

That's not true for blocks. It's valid for post types, custom templates, etc. If you are using block, you can use the same field name in different blocks. Blocks works as an object, that's why you can use the same block in the same page several times without affecting anything.

October 25, 2024 at 2:04 pm #16331028

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Could you please set up another test site, on which we can give this a test?

Take note that my last comment was cited from the wpml.org documentation, which for I ask you again to follow the recommended workflow.

October 25, 2024 at 2:06 pm #16331029

ruiG-5

What do you mean? You can use my dev environment. I can setup a new one, if you really want.

October 25, 2024 at 2:07 pm #16331030

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

If it is fine with you that I will change all the field names on your dev site to ensure that they are unique, let me know.

October 25, 2024 at 2:10 pm #16331064

ruiG-5

Yeah, that's ok. I have a local backup.

October 26, 2024 at 4:47 am #16332781

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

After reviewing your field groups closely I have to admit, that there are way too many fields that need to get adjusted. All your fields have general names like, title, content, style, button, etc.

Take kindly note, that if you agree to changing all the filed names of all your ACF Groups to make sure that they use the same field name, in order to test if this solves the issue, then we need to ask you to run this task yourself.

It is strictly stated on our documentation that each field name should be unique.

Our support is not supposed to adjust any ACF Field Group settings for you, as we usually do not have that much time. We handle too many requests and other tasks to do such favors for every customer.

Further, please take note that each chat and support ticket on wpml.org should handle only one issue. If you expereince various issues, even if they are related to the same plugin, we need to ask you to open one chat or ticket for each request.

October 26, 2024 at 8:33 am #16332946

ruiG-5

Can you send me your Documentation direct link regarding ACF Blocks and WPML?

If this was the case, basically 95% of the fields weren't showing in ATE. Which clearly is not the case.

Has this issue been escalated internally?

October 28, 2024 at 8:26 am #16336225

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

As I mentioned earlier, we have already a development taks for ACF Blocks containing Group Fields. In such Groups the translation preference settings is currently not respected.

Our ACF documentation can be found here:
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/

See screenshot with general notice regarding field names.

field names.jpg