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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.