Skip Navigation

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

Problem:
The client is trying to use an ACF block with a gallery field set to 'Copy Once' with the expectation that images added in one language will be copied to other languages without manual intervention. However, the client found that a new image added in the German version of the site was not copied over to other languages.
Solution:
We tested the issue by creating a test page and adding images to the gallery field. After publishing the page and translating it into English using the WPML translation editor, the images were copied as expected. Upon adding a new image and updating the page and its translation, the new image appeared correctly in both languages. We advised the client that if they are using the WordPress editor to translate pages, they must add images to the translated languages after the initial translation. To ensure images are copied to translations without manual addition, we recommended changing the translation preference from 'Copy Once' to 'Copy'.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If you're still experiencing issues, 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 problem 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 12 replies, has 2 voices.

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

Assisted by: Osama Mersal.

Author Posts
February 28, 2024 at 9:55 am #15352879

ninaR-3

Tell us what you are trying to do? I have an acf block with a gallery field. This is set to copy once, with the idea that the images in the other languages will be copied and don't need to be added manually. I tested this on the german site and added a new image: hidden link (caption "Test new image german"), unfortunately this image is not copied over in to the other languages as seen here hidden link

Attached also two screenshots with the relevant settings.

Screenshot 2024-02-28 at 10.52.56.png
Screenshot 2024-02-28 at 10.54.30.png
February 28, 2024 at 11:29 am #15353456

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

February 29, 2024 at 3:49 pm #15359066

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Nina,

Thanks for the access details. I created a test page to check the issue. (hidden link)

In the beginning, I added three images, published the page, and translated it into English using the WPML translation editor, which worked as expected.

After that, I added a new image and updated the page along with its translation, which appeared correctly in both languages.

Would you please let me know the steps to reproduce the issue?

Please note that if you use WordPress editor to translate your pages, you will need to add the images to the translated languages after the initial translation.

In order to avoid that, you would need to use the "Copy" translation preference instead of "Copy Once".

Best regards,
Osama

March 4, 2024 at 9:03 am #15368161

ninaR-3

Hi Osama, thanks for your help. To clarify: I expect the following: I add an image to the block on the german site, safe the page, change to the english site (indeed in the editor) and expect to see the same image in this block on the english site. This doesn't work.

I now changed the setting to "copy" and it also doesn't work in this setting.

Do I missunderstand something here, how it should work ?

March 4, 2024 at 9:29 am #15368399

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

On the staging site, I changed the gallery translation preference to copy. Please add any image to this page and update it. (hidden link)

After that, please check the English page. (hidden link)

Best regards,
Osama

March 7, 2024 at 10:18 am #15383325

ninaR-3

Thanks Osama, thats seems to work indeed! (I have the acf settings in a local json file and had it set to copy, strange that you had to set it to copy again). Now, i have a page "On Tour" with already a gallery in there. On that page it doesn't seem to work. I now also tried to delete the gallery block on the english site and added a new image in the german page to see what would happen. Is it possible to get it work on an existing page ?

March 7, 2024 at 10:18 am #15383330

ninaR-3

Also: this is a staging site, so feel free to make changes on existing content.

March 7, 2024 at 10:28 am #15383383

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

When using the WPML translation editor, the copy function will work as you expect. (Kindly check the attached screenshot)

Please add or delete an image from this page and check the English page. (hidden link)

When using the WordPress editor, you would need to add or delete the images in each language manually.

Best regards,
Osama

2024-03-07_12-26-20.jpg
March 7, 2024 at 3:43 pm #15385461

ninaR-3

Sorry, I still don't quite understand. Why does it then work now for the english translation but not for the french and or italien? Do I need to delete there the block and add it again?

March 7, 2024 at 3:47 pm #15385482

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

No, you need to translate those languages using WPML Translation Editor, not WordPress Editor.

Please click the "Spinning Arrows" icon to open the translation editor, translate the post, and save the translation. The gallery will then work correctly.

Best regards,
Osama

March 8, 2024 at 3:00 pm #15389941

ninaR-3

Hi Osama, I did try that. The editor tells me that only a small part of the page is translated while everything we need to have translated is translated. I press save and quit in the translation editor but the gallery is still not updated. Could you please with the "on tour" page tell me step by step how the gallery gets synced? It still doesn't make sense to me unfortunately.

March 9, 2024 at 10:24 am #15391285

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

1) Please check the provided access details because I get the following error. (Error: The password entered for the email address *** is incorrect. Forgot Password?)

2) In order to use the WPML translation editor, you need to configure the translation preferences for the custom fields. Kindly check this guide. (https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/)

Best regards,
Osama

March 11, 2024 at 11:21 am #15394599

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Thanks for the access details. Please check this video to see how the gallery is copied when you use WPML Translation Editor. (hidden link)

Best regards,
Osama

March 13, 2024 at 11:51 am #15403502

ninaR-3

Thanks Osama, that video made it all clear. Thanks for all the help, its appreciated!