Skip Navigation

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

Last updated by Dražen 1 year, 7 months ago.

Assisted by: Dražen.

Author Posts
September 11, 2023 at 9:06 am #14373989

vishalG

https://wpml.org/forums/topic/wpml-content-copy-is-not-working-with-acf-block-2/

Sorry for the delay in this issue. My lack of responding closed the issue, therefore I am opening another one. Hope it will be the last.

Our problem is that we are trying to use content copy on our ACF blocks. As we click on "Copy content from English" and publish the page, nothing is happening on the cms. The changes are visible on the website but we dont see any of the content on the cms side. This function works properly with the other languages we use but this error occurs only in Spanish. I will be attaching the screen records wetransfer link so you can see how it looks when we do it.

Previous advice was selecting "Copy" or "Copy once" on the areas we have problems. But the areas are not showing up on the setting list.

In the last topic, supporter suggested that my issue was about selecting the same fields across the languages option in the acf. I checked my block and it looks like the option is not selected. Is this the reason I cant see "copy" or "copy once" options on these areas? If thats the issue, how does other languages work fine but Spanish doesnt work? Also if thats it, how should i fix it? As I saw in the documentation that you dont recommend changing these fields on existing blocks.

September 13, 2023 at 6:28 am #14387095

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for contacting us.

I see you have set ACF field groups as translatable, which is not recommended and cause issue. Since you have them you have probably misconfiguration for that language group.

Please delete all other language ACF field groups and set them to Not translatable:

- https://wpml.org/errata/advanced-custom-fields-field-group-should-be-set-as-not-translatable/

Then it should work fine and the same for all languages.

Please make a backup before proceeding.

Regards,
Drazen

September 15, 2023 at 10:43 am #14402507

vishalG

Hello Drazen,

Thank you for your reply.

We tried setting ACF field groups to not translatable. But the issue still exists and as I try to translate into our components, there is no content in the edit page or no translated content on the page.

September 15, 2023 at 10:59 am #14402683

Dražen
Supporter

Languages: English (English )

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

Hello,

make sure you have set ACF groups to not translatable, so they exist only in one language. Delete other duplicate ones.

Then edit that ACF group and make sure the correct settings are set.

Edit your default language page and save. Check 2nd language page, you should see same fields / block.

If you still have an issue please share with me image/video of the ACF group and field settings, so I can confirm you are following my suggestion correctly.

Thanks,
Drazen

September 27, 2023 at 8:45 am #14471615

vishalG

Hello,

I believe I am applying what you are telling me but it looks like its not changing anything. I attached a link of my screen recording showing the settings and how pages work for me right now.

hidden link

September 27, 2023 at 8:53 am #14471785

Dražen
Supporter

Languages: English (English )

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

Hello,

so you are expecting when you click Copy content from English that it copies also ACF fields?

If so, that is not how it works, ACF field settings are controlled by what translation setting you have set for them. In this case, if you want them to be the same they should be COPY or COPY once.

Also, option "Copy content" does not work with custom fields, as our docs say, in this case, you should use Duplicate or Overwrite.

- https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/

Hope this helps.

Regards,
Drazen

September 27, 2023 at 2:33 pm #14475107

vishalG

Hello,

We want to copy the contents to the secondary language page so we can translate the English content in the secondary language page.

Before this we were able to receive all the blocks including the acf fields in English copied to the Block Editor when we clicked "copy content from original". Then we started to receive blank contents and after changing the Custom Fields to not translatable, we dont see the blocks too.

We need to copy the content of the custom fields. Is there a way we can achieve what we want?

September 28, 2023 at 6:10 am #14478567

Dražen
Supporter

Languages: English (English )

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

Hello,

yes, you can achieve so as I explained above:

- you need to make sure your ACF translation settings are correct, Copy once or translate should be set for these fields.

- you can then use duplicate and edit manually 2nd language content, that is the workflow and method we suggest from our side.

- https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

Let me know how it goes.

Regards,
Drazen