Skip Navigation

標籤: 

本主题包含 0 則回覆 ,有 0 声音 。

最后由 petrH-5 2 weeks, 3 days前 更新。

协助者:: Bigul.

作者 文章
31 3 月, 2025 at 8:35 上午

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: 隐藏链接. 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 隐藏链接 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

31 3 月, 2025 at 10:00 上午