Skip Navigation

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

Problem:
You are trying to translate content in ACF repeater fields within a custom block. While the first block translates correctly, in subsequent blocks, only the content fields are visible in the translator, and the title fields are missing.
Solution:
This issue typically arises when the same field names are used more than once across different blocks. Each field name in your ACF repeater fields should be unique to ensure they all appear in the WPML Translation Editor. We recommend checking and updating your field names to be unique per group. For more details, please refer to our documentation on using the same fields across languages.

If this solution does not resolve your issue or seems irrelevant due to being 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. Additionally, if you need further assistance, please do not hesitate to 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 8 replies, has 0 voices.

Last updated by frederickC 2 weeks, 2 days ago.

Assisted by: Andreas W..

Author Posts
January 7, 2025 at 6:14 pm #16571045

frederickC

Background of the issue:
I am trying to translate content entered in ACF repeater fields in a custom block. The repeater has two fields: title and content. For the first created block, all fields show in the translator and work fine. However, when I create a second block, only the content fields show in the translator, and the title fields for the second block are missing. Link to a page where the issue can be seen: hidden link

Symptoms:
For the second created block, only the content fields show in the translator, and the title fields are missing.

Questions:
Why are the title fields for the second block not appearing in the translator?
How can I ensure all fields in ACF repeater blocks are available for translation?

January 7, 2025 at 6:24 pm #16571102

Andreas W.
Supporter

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

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

Hello,

Could you please let me know which translation preference the ACF Group is using?

Best regards
Andreas

January 7, 2025 at 6:25 pm #16571105

frederickC

It is set to Expert. Repeater is set to Copy and both sub fields are set to Translate

January 7, 2025 at 6:32 pm #16571169

Andreas W.
Supporter

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

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

You are saying that you are using a custom block. Could this be related?

I would like to offer a WPML test site with ACF PRO on which you can install your theme for testing. Would you be able to cooperate on this matter?

January 7, 2025 at 6:40 pm #16571191

frederickC

Might be, but I often create custom blocks and this is the first time this has happened.

I'm happy to try my theme on a test site

January 7, 2025 at 6:46 pm #16571209

Andreas W.
Supporter

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

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

Let's us try to recreate the issue on this test site and then run further tests.

One-Click-Login:
hidden link

WPML and ACF are already installed. Please drop me a comment on this ticket once you have installed your theme and imported your field groups.

January 7, 2025 at 7:39 pm #16571311

frederickC

I have installed my theme and importe the fields. Added the same content on to sample page and problem seems to remain.

January 7, 2025 at 10:31 pm #16571548

Andreas W.
Supporter

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

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

The seems to be a known problem about the field names.

Each field name should be unique. If you use the same field name more than once, then fields can be missing on the WPML Translation Editor.

We are metnioning this issue on the following section of our documentation:
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/#using-same-fields-across-languages

Could you please give this a test and let me know if using unique field names per group solves the issue?

January 8, 2025 at 8:56 am #16572436

frederickC

Hi,
Ok I understand. So I've switched to the classic WP Editor for the page in question and translation works fine. Good to know.

Thanks very much
Fred