Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 2 replies, has 0 voices.

Last updated by Lucas Vidal de Andrade 5 hours, 35 minutes ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
March 5, 2025 at 1:46 am #16776419

chadG-5

Background of the issue:
I am trying to fix links that are pointing to the wrong translation on my site hidden link. I used the 'scan now and adjust links' feature, but it did not solve the problem. I followed the documentation at https://wpml.org/faq/how-to-translate-links/ but could not get the advanced translation editor to show me the links.

Symptoms:
Links are pointing to the wrong translation. The advanced editor only shows anchor text and not the actual links.

For example, at hidden link the link with anchor text "Visita Preguntas frecuentes" points to /faq/ instead of "/es/preguntas-frequentas/" but the link with anchor text "Visita la Guía de inicio" correctly points to "/es/documentos-de-usuario/como-empezar/"

Questions:
How can I get the advanced translation editor to show the actual links?
Why are some links still pointing to the wrong translation after running 'scan now and adjust links'?

March 5, 2025 at 12:57 pm #16778693

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Iwould like to look at this directly on your site. For this I would need temporary access (WP-Admin and FTP) to your site, preferably to a test/staging site where the problem has been replicated if possible.

The required fields can be found below the comments section. The information you enter is private, i.e. only you and I can see it and have access to it.

I may need to replicate your website locally. To do this, I need to temporarily install a plugin called "Duplicator" or "All in One WP Migration" on your website. This will allow me to create a copy of your website and content. Once the issue is resolved, I will delete the local website. Let me know if this works for you.

IMPORTANT

Please make a backup copy of the site files and database before giving us access.

- If you do not see the wp-admin/FTP fields, this means your post and site login details are being made PUBLIC. DO NOT post your website details if you do not see the required wp-admin/FTP fields. If you do not, ask me to enable the private box. The private box looks like this:

hidden link

March 5, 2025 at 3:13 pm #16779636

chadG-5

Hi Lucas, on closer inspection this is possibly related to my other ticket. So I will wait to see how that goes and either reply again or close this one.

Thanks!

March 5, 2025 at 4:43 pm #16779993

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Sure. Let me know. Sidenote: this ticket closes automatically after 14 days of inactivity.

March 10, 2025 at 4:22 pm #16797515

chadG-5

Hi Lucas,

Okay my other issue is resolved (some custom javascript inside HTML of some posts was preventing some translations from completing), but the issue with untranslated links remains.

One example is the my resources template (which appears on many pages):

hidden link

1 of the links correctly points to the spanish page, but the other three links are still pointing to the english page.

running the "Translate link targets" didn't fix it.

Thanks!

Screenshot 2025-03-10 112047.png
March 10, 2025 at 7:21 pm #16798244

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

In this case, I need to check your website directly. For this I would need temporary access (WP-Admin and FTP) to your site, preferably to a test/staging site where the problem has been replicated if possible.

The required fields can be found below the comments section. The information you enter is private, i.e. only you and I can see it and have access to it.

I may need to replicate your website locally. To do this, I need to temporarily install a plugin called "Duplicator" or "All in One WP Migration" on your website. This will allow me to create a copy of your website and content. Once the issue is resolved, I will delete the local website. Let me know if this works for you.

IMPORTANT

Please make a backup copy of the site files and database before giving us access.

- If you do not see the wp-admin/FTP fields, this means your post and site login details are being made PUBLIC. DO NOT post your website details if you do not see the required wp-admin/FTP fields. If you do not, ask me to enable the private box. The private box looks like this:

hidden link

March 11, 2025 at 5:47 pm #16803385

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Because of the way the links were implemented, they must be searched and translated. Check the image attached.

Please go to WPML > Translation Management, send the template to translation and translate the links, by searching part of the URL and adding its translation. Let me know if it works this way.

March 11, 2025 at 7:20 pm #16803794

chadG-5

ah. okay, I didn't notice them listed as just strings on the advanced translation page because the screenshots in the documentation are different.

What can I do differently so that they automatically translate? In other words, what did I do differently for the one link that did translate?

March 12, 2025 at 12:55 pm #16807111

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

I'm not entirely sure on why this happened. I checked the links once more, and the one that was automatically translated was implemented in the same way. It seems there's something external causing that behavior.

Please do as follows. That should solve it. Make sure to have a full website backup:

- Go to "WordPress Dashboard > WPML > Languages".
- Check the "Adjust IDs for multilingual functionality" checkbox.
- Click the Save button.
- Go to "WordPress Dashboard > Settings > Permalinks".
- Click the "Save" button to flush the permalinks cache.

Let me know if this solves the issue for future implementations.

March 12, 2025 at 3:07 pm #16807941

chadG-5

Hi Lucas,

Unfortunately that did not work. The adjust ids checkbox was already checked. I unchecked it clicked save then rechecked it and clicked save.

I also changed the permalinks setting clicked save then changed them back and clicked save.

I also tried the translate link targets again, but link translation is still inconsistent throughout the site.

For example, on
hidden link
the first and fourth links on the page are translated but the second and third links are not.

On
hidden link
the first link is translated and the second link is not

On
hidden link
none of the links are translated.

I realize I could just go and manually update these, but I have 3 other languages to do plus as many as 4 other websites with 4 languages eac so I am trying to estimate the cost of my time vs paying for weglot which worked flawlessly, but is super expensive

Thanks for your help!