Skip Navigation

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

Problem:
The client is using WPML with Advanced Custom Fields (ACF) and the Advanced Custom Fields Multilingual plugin. Automatic translation adds content to WordPress, but the frontend does not display the translated content unless the client updates the page manually by clicking the "Update" button.

Solution:
Make sure you correctly setup the language preferences for ACF Multilingual. You can check this documentation for more information about it: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/

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 elizabethY 3 years, 3 months ago.

Assisted by: Alejandro.

Author Posts
January 7, 2022 at 5:02 pm #10307147

elizabethY

Using Automatic Translation works, but not fully. The content is translated and added to WordPress, but the frontend doesn't display any of the page's content unless I go into the editing page and click the "Update" button. The site is using Advanced Custom Fields and has the Advanced Custom Fields Multilingual plugin.

January 8, 2022 at 3:14 pm #10310599

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

I'm not entirely sure i understand here, because as soon as the content appears in the back-end, WordPress will show it in the front-end, if it doesn't it could be a cache issue.

However, if you do something like updating an ACF and then update the page, it could be that the content won't appear on the other side, if you do not see the "update" icon on the "language" section, then it will not really update correctly.

If you are updating a custom field, which usually gets updated through ajax and skips the WordPress hooks, i'd suggest you add a new character to a native WordPress field like the title and only afterwards save it and update the translation to make sure you are really updating it correctly.

Can you try that and let me know if that fixes the problem? if not, i'd be very useful, if you could send me a video showing me the entire process you take alongside the results you get so i can try to check if i find a clue about what's going on.

Regards.

January 10, 2022 at 3:37 pm #10320211

elizabethY

Thanks Alejandro.

I assume you meant to say "because as soon as the content appears in the admin". I agree this should be the case, but the admin shows translated ACF content but none of it appears on the frontend. The site is hosted on WPEngine and I have cleared the cache multiple times, but the only way translated fields have appeared on the frontend is by updating the WordPress page.

All content currently exist in English, and none of the ACF field groups have been changed aside from tweaking the translation settings. So I'm not updating the English content, I'm triggering translations for a specific page in a specific language, and using the Advanced Translation Editor.

The name of the page is shown as translated on the frontend, so it appears that only the ACF content is missing after using the Advanced Translation Editor. In order to use Automatic Translation I need to use the Advanced Translation Editor, but I'm still triggering translations manually.

I hope this new information helps.

translation-mode.png
advanced-translation-editor.png
translation-shows-complete.png
frontend-content-missing.png
editor-warning.png
admin-content-translated.png
January 10, 2022 at 4:03 pm #10320505

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Ok, then let's do the following:

- Clone the site into the server using the info and instructions i'll send in the next answer.
- Disable all the plugins except WPML w/add-ons + ACF
- Edit one of the pages that have had the issue in the past, in the original language of said page.
- Add a character to the translation and save it
- Translate/update the translation
- Check if the problem persists in the front-end.

if it does, then please write the steps you took for it to create it or record yourself while following the procedure so i can recreate the problem on my end as well.

also send me the link of the page you tested this on in this cloned site, please.

January 13, 2022 at 4:24 pm #10345469

elizabethY

I copied the site into another environment as recommended but didn't need to follow the other instructions. I realized it was just a settings issue.

The ACF translation settings can be changed when editing the ACF field groups and also in the WPML settings. I had gone through all of the existing fields in the WPML settings but this did not take for some reason. To fix the problem I needed to update the settings in the ACF field groups directly.