This thread is resolved. Here is a description of the problem and solution.
Problem: You are using an ACF URL field with the WPML plugin, and the URL field with the copy setting does not receive the correct link, displaying the same link in both languages.
Solution: First, we need to adjust the setting for the "txt_link" field within the repeating sub-fields group from "Copy" to "Translate". After changing this setting, make a minor edit to the home page (such as adding a few characters to a text label) and save the changes to trigger an update in the translation. Next, update the translation in the Advanced Translation Editor (ATE) and manually correct the link for the translated version of the product.
If you encounter issues with internal links not automatically adjusting to their corresponding translated links, ensure that the target content has been translated and published. For existing content where the incorrect setting was used, you can either update the links manually as described or resend the content for automatic translation. Utilizing the translation memory feature can help minimize the costs of retranslation.
If you find that this solution does not resolve your issue or seems outdated, or if it does not apply to your specific case, 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. Additionally, if you need further assistance, please do not hesitate to open a new support ticket at our support forum.
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 trying to use an ACF URL field with the WPML plugin on my site hidden link. The URL field has a copy setting that is supposed to display the matching link in translated languages.
Symptoms:
The URL field with the copy setting does not receive the correct link and displays the same link in both languages.
I checked our forums and discussed with the team, that "txt_link" needs to be set to "Translate" in that repeating sub-fields group. So I set it to translate, then edited the home page and made a little change (i.e. added ... to one of the text labels) and saved. This triggered a new change in translation.
I then updated the translation in ATE and searched for the link. And then corrected with the translated link for that product.
After that it is working fine on the frontend (hidden link).
I also checked for the impact of this change in other places as you had mentioned that it might cause a problem, but since this is the only field and it is being used in a designated place, it hasn't caused any problem.
Attached are the screenshots for the changes I made.
For the change made in home page (i.e. ... three dots to trigger the update), I've removed and updated the translation again.
i wanted also to check, i have another problem maybe its relater to this one, i have a lot of product that i can see the acf field not translated in product page and after inserting the wpml editor and just saving without changing anything, it display in hebrew.
you can see this product for example, if you scroll down you will see english description hidden link
hidden link
if you wiil enter wpml editor and saving, it will be display in hebrew but i have 4000 products and i can't enter every product and saving for displaying the translation.
i see your response
i just want to understand
the wpml don't know to automatically translate acf url field to match link?
i don't have choice and need all this kind of field to change to translate instead of copy and to translate in wpml editor?
Sorry for the delay, I'm dealing with other issues in the tickets also, so please bear with me.
Internal links are adjusted automatically to their corresponding translated links, if the target content has been translated and published. This is the usual case.
However, in some cases, specially with this repeater field, which is a sub-field in another sub-repeater group, a "copy" setting just copies the same default link to the translated versions.
So it needs to be set to "translate".
Given that, if you translate your content automatically, it should be translated. For the existing content, where this has been used and needs to be fixed, you can either update manually (as I mentioned previously) or can resend your content for automatic translation. Since most of the content has already been translated, only the new change may cost you very little to no credits, due to the translation memory feature.
For the other issue regarding the products vs ACF field, I recommend opening a separate ticket/chat because as per forum policy we can only handle one issue per ticket. So you can get more to the point help, without mixing up several issues in one long ticket.