Skip Navigation

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

Problem:
The client was experiencing an issue where ACF custom fields on pages as flexible content were translated in the backend but the page appeared empty on the second language frontend. The client had a template for these subpages and ACF was set to have the same fields across languages. The template used was translated, but the conditions applied to which subpages the template is applied to did not transfer.

Solution:
We suggested that the client should try translating the parent page to ensure that the template conditions are correctly applied to the subpages in all languages. Additionally, we made some changes to the template to ensure that the ACF field references matched correctly.

If you're experiencing a similar issue, we recommend you:
1. Translate the parent page to the secondary language.
2. Check that the template conditions are correctly applied to the subpages in all languages.
3. Verify that the ACF field references in the template match correctly.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket with us.

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 4 replies, has 2 voices.

Last updated by Nicolas V. 1 year, 4 months ago.

Assisted by: Nicolas V..

Author Posts
February 12, 2024 at 11:52 am #15292924

Dann

Hello, I have ACF custom fields on pages as flexible content. They have been translated but the page is empty on second language front end but translated on backend. I have a template for these subpages. ACF is set to have same fields across languages. Checked every setting and documentation. The template used is translated.
Is there any documentation that you are following?
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/#required-plugins
hidden link

Screenshot 2024-02-12 at 11.49.16.png
Screenshot 2024-02-12 at 11.49.24.png
February 12, 2024 at 5:24 pm #15294283

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hello,

Welcome to the WPML support forum. Before I can instruct you how to set your custom field, there is an important point to clarify.

From the screenshot you sent it seems that you are editing the translation directly in the WordPress editor. Please know that the recommended translation preferences for your fields are different depending if you use our Advanced Translation Editor (ATE) or the WP editor.

- If you use the WP editor then, your Field groups should be set as "Different fields across languages". This will set most of your fields as "Copy once" and it's required when using translating using the WP editor.

- If you're using ATE, then please set your fields groups as "Same fields across languages". This will set flexible content fields as "Copy" and fields like "titill" or "meginmalstexti" as "Translatable". Then use our editor to translate those fields.

February 13, 2024 at 9:02 am #15296078

Dann

Hello

I always translate anything I can in the ATE, sorry the screenshot was confusing, the custom fields from the wp editor have a lock icon with a tooltip message that syas: "This field value is copied from the default language and will be kept in sync across languages." That was the point I was trying to convey.
I have Same fields across languages in ACF settings for the field group. Thats why I dont understand why there is nothing showing on the front end.

Screenshot 2024-02-13 at 09.01.35.png
February 14, 2024 at 12:43 pm #15302208

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hi,

Thank you for the clarification. Could you please provide me with a temporary admin access – preferably to a test site where the issue has been replicated – as it seems that you're doing everything correctly.

I will activate a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting.

IMPORTANT: Before we proceed, please backup your site and database.

February 15, 2024 at 3:04 pm #15308129

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hello,

I spent quite some time on your site yesterday and couldn't figure out the issue. But today I re-read your description with fresh eyes and noticed that you are using a subpage in Icelandic but not in English, so I think that the template is not applied to the English version.

Could you please try to translate the parent page Fræðsla ?

I made some changes in the template already, some of the acf fields references were not matching.

February 15, 2024 at 3:38 pm #15308431

Dann

Hello

Thanks. I tried that without luck. But I found out what the problem was, the Template for subpages(Undirsíður) did not transfer the conditions applied to which subpages the template is applied to.

Thanks for the help, you lead me to the solution.