Sauter la navigation

Marqué : 

Ce sujet contient 0 réponse, a 0 voix.

Dernière mise à jour par petrH-5 Il y a 1 semaine et 6 jours.

Assisté par: Bigul.

Auteur Articles
mars 31, 2025 at 8:35 am

petrH-5

Background of the issue:
I am trying to use the language switcher on our website, and it's showing non-published translations. The issue can be seen on this page: lien caché. The hreflang links are also affected, as shown in the code: .

Symptoms:
The language switcher is showing non-published translations, leading to 404 errors. I see links like lien caché in the source code that creates 404 errors.

Questions:
Why is the language switcher showing non-published translations?
How can I hide unpublished post translations to prevent 404 errors?

I found similar issue https://wpml.org/forums/topic/drafts-showing-in-language-switcher/ but this not helped as I have plenty of memory

mars 31, 2025 at 10:00 am