Polylang lost linked translations

Polylang lost linked translations is a bug that breaks the links between translated pages, so the language switcher sends visitors to the homepage instead of the matching page. To fix it, unlink all translations of the page in the Languages box and save, then re-link each language and save again. No code is needed.

Polylang Lost Linked Translations

Polylang normally keeps translated pages linked to each other, but I’ve seen those links break on a couple of occasions even though every translation was still published. Below is why it happens and the fix that worked each time, which takes a few minutes in the Languages box.

Why does Polylang lose linked translations?

Polylang loses linked translations when the link between translated pages isn’t saved properly, which usually happens while you’re editing one of the translations. The plugin normally works flawlessly and the issue is hard to reproduce, so my guess is that saving one translated page doesn’t always save its translation group correctly.

To unlink Polylang translations, clear every language field in the Languages box of the page in your primary language and save it. This resets the broken link between the translated pages, so you can link them again cleanly in the next step. Follow these steps:

In your WordPress dashboard, select your primary language from the admin bar.

Click the languages icon to view the linked translations.

You will see the corresponding (linked) translated pages.

Delete page names from each field and click Save. This will unlink the translated pages.

When you refresh the edit page, both fields should be empty, only with the placeholder “Start typing the post title…” displayed as follows:

To re-link Polylang translations, type the name of the matching page in each language field of the Languages box, pick it from the dropdown and save. Once the link is saved, the language switcher on every translated page points to the right page again instead of the homepage.

  1. Type the name of the corresponding page in each language field.
  2. Select it from the dropdown.
  3. Click Save.

That’s it, you’ve fixed the lost link between translated pages.

On the pages list, you should now see the pencil icon for that page’s translations.

This confirms that the page is linked to its translation in the target language.

Conclusion

The key takeaway is that unlinking and re-linking the translations fixes Polylang’s lost links without any code. I have implemented this fix on a couple of occasions and each time it resolved the issue. If unlinking and re-linking doesn’t solve your issue, try re-saving your permalinks at Settings > Permalinks.

Still no luck? Try the Support Threads of the Polylang plugin or request help from a WordPress expert.

About the author

Ozgur Sar Avatar