[Resolved] Automatic translation of link fields in ACF
This thread is resolved. Here is a description of the problem and solution.
Problem: You are developing a site using WPML for automatic translation and facing an issue where ACF link fields on the English pages still contain links copied from the Dutch pages. Attempts to use 'Translate Link Goals' did not resolve the issue. Solution: We suggest you use WPML hooks to modify the URL to the current language to fix the issue.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/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 continues, please do not hesitate to open a new support ticket at WPML support forum for further assistance.
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.
Background of the issue:
I am developing a site using WPML for automatic translation. The site is translated automatically, but I am facing an issue with ACF link fields.
Symptoms:
The ACF link fields on the English pages still contain the links copied from the Dutch pages. I tried using 'Translate Link Goals,' but this did not work.
Questions:
How can I ensure that ACF link fields automatically adjust to the English pages?
I tried to recreate the issue, but we work with our own template, and I cannot recreate the issue without it. I provided you with the login details for the website where we are experiencing the issue. Could you check the website to possibly find the solution?
I've made some changes to the code, but it seems the issue persists. The link title is being translated automatically, but the structure of the URL remains unchanged.
Hey, guys,
can you explain the solution to this problem?
We have a similar problem on the development version of the site: we need the URL link in the ACF field from the English page to link to the German page. Even though we don't have automatic translation turned on, it still translates the German url back to English. We are working with a custom template.
And it does this even if we put an absolute internal url in the custom acf block, when the page is loaded the url is replaced.
New threads created by Osama Mersal and linked to this one are listed below: