Skip to content Skip to sidebar

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

Problem:
The client was able to use automatic translations in the backend without any issues, but the translations were not displayed on the front-end when using Advanced Custom Fields (ACF) with the ACF Builder. The client discovered that the translations worked perfectly and were displayed when not using the translation services for automatic translations.
Solution:
The client found the solution by adding the following attribute to their flexible content:

'acfml_field_group_mode' => 'translation',

>
If this solution doesn't look relevant to your situation, please open a new support ticket.

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.

Tagged: ,

This topic contains 5 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 7 months ago.

Assisted by: Osama Mersal.

Author Posts
December 5, 2023 at 8:27 am

joshuaK-5

I'm able to use automatic translations in the backend with no problem but the issue is that in the front-end the translations are not displayed, I'm using ACF with this hidden link, the translations works perfectly and are displayed if I don't use the translations services for automatic translations. What can be the issue?

December 5, 2023 at 9:00 am
December 5, 2023 at 9:08 am #14994455

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Here is the sandbox site with WPML and ACF installed. (hidden link)

Please add your ACF blocks/field groups, create a new page, and translate it to replicate the issue.

If the issue is replicable, please let me know to check it and consult our 2nd tier support team.

Best regards,
Osama

December 5, 2023 at 12:37 pm #14997115

joshuaK-5

Hello, the sandbox only allows me to use the WordPress Editor for translations not "WPML Translation Editor" and my issue is with this, once I add the translation not all blocks (with the strings translated) are displayed.

In the site that I shared we are using automatic translations and those are the ones that are not displayed

Thank you for the help

Screenshot 2023-12-05 at 13.35.04.png
December 5, 2023 at 12:43 pm #14997307

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

I activated the translation editor on the sandbox site. Please check if it works correctly.

Best regards,
Osama

December 5, 2023 at 1:07 pm #14997511

joshuaK-5

Sorry I added by mistake a `die;` in the file "functions.php" of the theme, can you remove it manually? the site is not accessible

December 5, 2023 at 1:38 pm #14998349

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Never mind! Here is a new sandbox site. (hidden link)

Best regards,
Osama

December 6, 2023 at 8:43 am #15004935

joshuaK-5

I found the issue, I needed to add this attribute to my flexible content
```
'acfml_field_group_mode' => 'translation',
```

thank you for the help