[Resolved] ACF Gallery Block set to copy once, but doesn't copy images
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.
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.
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.
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".
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 ?
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 ?
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?
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.
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.
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?)