Background of the issue:
I am trying to manage internal links in WPML. Previously, when I added a link to a post in a different language, it would link to that post in the different language. Now, it changes the URL to the same language as the post I'm editing.
Symptoms:
When editing a post in language EN and adding a link to a post in language FR, the link changes to language EN upon saving.
Questions:
Is there a way to disable the auto-translation of links in the content of a post?
(are you using AI to rewrite everything I wrote before? If so, that's quite rude)
Welcome to WPML support. Just to clarify, we use the AI system to ask some questions and summarize the tickets for the supporters. That helped us a lot to serve our customers. I apologize in advance if that is uncomfortable, at this stage, the system is implemented and I can not change it.
In general, it should not be possible to add for example FR language link to EN language page as the whole point of WPML is to translate the content including the links to the proper language.
It is related to a glue plugin that we had but I think it should work even without that plugin is enabled.
So basically, you will tell WPML which slugs you do not want WPML to force translate. The code should be added to functions.php of your theme.
I am not sure how you managed to do that before, but from my testing it is not possible to add other language internal links wth the latest version of WPML and the Advanced Translation Editor.
That's very odd. My client who uses the system daily says that they used to be able to add links to translations without issue. It seems this started working for the site very recently.
Is there a filter that would work to exclude any link added in the_content()? Or a specific template part? I can't make exceptions on a case-by-case basis.
Thanks, unfortunately, there is no way from what I searched and asked my colleagues to have a bulk method to avoid translating internal links.
The other way to change the URL is to go to the Advanced Translation Editor and select the paragraph that contains the link. If you hover over the translation you will see a box explaining that the link is an internal link and will be translated by WPML.
But as you can see in the screenshot there is an option to unlock the option and add a manual link there which will do what you want.
Thanks.
The topic ‘[Closed] Turn off auto translation of links in content’ is closed to new replies.