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?
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?
- 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.