Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 1 reply, has 2 voices.

Last updated by Prosenjit Barman 1 year, 2 months ago.

Assisted by: Prosenjit Barman.

Author Posts
April 25, 2024 at 5:19 pm #15566996

geraldB-7

We have a website that is being translated to Spanish. Everything seems to be working fine, outside of one custom ACF Block. The links in this specific block are not correct; though they are set properly (in WordPress).

You can see an example on this page: hidden link

The last CTA before the location list. If you notice, all of the data (links) for this block are showing up with <Array> at the end of the URL, and the actual URL is incorrect.

We have tried virtually every setting we can think about but still cannot seem to get it to work. Additionally, this specific ACF Block does not show up in the translation list like the others do. I assume because its a custom block?

Help would be greatly appreciated!

April 26, 2024 at 8:20 am #15568719

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're having. If the translation preference for the field, where you're entering the link is set to "Translatable", the link should appear in the translation editor. Could you please try the following and check if that helps in solving the issue?

- From the WPML Debug info, I noticed that the translation setting for the field group (acf-field-group) is set to "Translatable," which is generally not recommended. For more details, please refer to this guide: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/expert-translation-option/#field-group-translation-settings. Please change it to "Not Translatable" by navigating to "WPML > Settings > Post type translation."

- After adjusting the setting, open the Field group that contains the 'link' field where you are entering the link.

- Change the 'Return value' setting to 'Link URL' and save the field group.

- Next, go to the default page where you have added the block and re-enter the link.

- Save your changes and then update the translation. Within the editor, search for the link as outlined in this guide: ttps://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/#how-can-i-translate-urls-in-the-advanced-translation-editor

- If the link appears in the results, proceed to add the translation.

Please let me know if that helps in solving the issue or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

The topic ‘[Closed] Link Not Translating Properly On Custom ACF Block’ is closed to new replies.