Background of the issue:
We have multiple ACF link fields on our site that are nested in a group and set to translate. The text in the link output is translating appropriately however the URL is not updating to the corresponding translated page. The json output for one of those grouped link fields is pasted below for your reference (see field_front_page_intro_button).
Per other threads I've found, I've tried updating the page with a small change, clicking Update, then allowing the automatic translations to run. Doing so updates the link text appropriately but the URL remains unchanged.
Link to a page where the issue can be seen: hidden link
Symptoms:
The first blue link found on the page (Conoce el CNYCF) should be linking to the Spanish translated page at hidden link. Instead, it is linking to the default language page at hidden link. The link text updates appropriately when making changes, but the URL remains unchanged.
Questions:
Why is the URL not updating to the corresponding translated page?
How can I ensure the URL updates to the translated page instead of showing the default language URL?
Please review the ACF custom field and let me know what is the current setting for it?
I want to ensure the URL field is not set to "copy" as that would always copy the original URL into the translation.
Also, if you edit the translation, at the top left there is a search area (within the Advanced Translation Editor), search for the URL there, are you able to locate it?
As seen in the json output above, the ACF Link field is wrapped in a group that is set to "copy" and the Link field itself is set to "translate".
I am able to find the link url in the Advanced Translation Editor when searching but, given the link's target page is a translated page, I would expect it to be able to automatically identify the translated version of that internal link. Is this possible? Our site is 200+ pages and manually updating these links via search, for multiple languages, is just not very realistic.
As a test what are your results if you do update the link in the ATE editor manually ?
Does it work Ok then?
Also, since the URL link is pointing to an internal URL, please try this:
1. Switch it's translation option from "translate" to "do not translate".
2. Make a small edit to the default language and update -> update the translation.
Is the URL working OK now?
Let me know your results, please.
The topic ‘[Closed] ACF Link field is translating link text but not URL’ 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.