Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing conflicts between hreflang attributes and rel="canonical" tags on their multilingual website using WPML and Yoast SEO. The canonical URLs for translated taxonomy terms incorrectly point to the Polish version instead of maintaining language-specific URLs.
Solution:
We recommend updating WPML and all related add-ons to the latest versions to ensure compatibility and functionality improvements. You can update WPML by following the instructions here: https://wpml.org/faq/install-wpml/.
Additionally, installing the WPML SEO glue plugin is essential for full compatibility with Yoast SEO. This plugin helps in correctly generating hreflang tags and canonical URLs for each language. Installation and activation are straightforward, with no additional settings required. More information on this plugin can be found here: https://wpml.org/documentation/plugins-compatibility/using-wordpress-seo-with-wpml/.
Before making any changes, ensure to back up your website and database.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket at our support forum.

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.

This topic contains 1 reply, has 0 voices.

Last updated by Andrey 1 month ago.

Assisted by: Andrey.

Author Posts
August 5, 2026 at 10:56 am #18193940

katarzynaL-8

We are using WPML together with Yoast SEO on the website vacusystem.pl. During a Semrush audit, we found approximately 440 conflicts between hreflang attributes and rel="canonical" tags.
The issue mainly affects translated taxonomy terms.
Example URL:
hidden link

For this page, WPML generates the hreflang tags correctly:
link rel="alternate" hreflang="pl" href="hidden link"
link rel="alternate" hreflang="en" href="hidden link"
link rel="alternate" hreflang="de" href="hidden link"
link rel="alternate" hreflang="x-default" href="hidden link"

However, Yoast SEO generates a canonical URL for the German version that points to the Polish version:
link rel="canonical" href="hidden link"
The same issue occurs for the English version.

We also checked all three language versions directly:
PL:
hidden link
canonical:
hidden link

EN:
hidden link
canonical:
hidden link

DE:
hidden link
canonical:
hidden link
In the WordPress admin panel, under:

Yoast SEO -> Advanced -> Canonical URL

the canonical field for the German taxonomy term is empty, so the Polish canonical URL has not been entered manually.

Current plugin versions:
WPML Multilingual CMS: 4.9.5
WPML String Translation: 3.5.3
WPML Media Translation: 3.1.2
Yoast SEO: 28.1
Yoast SEO Premium: 28.1
The WPML SEO / wp-seo-multilingual add-on is currently not installed.

Could the absence of this add-on be causing this behavior? If so, should installing WPML SEO make Yoast generate a separate canonical URL for each language version of the taxonomy term?

Would you recommend the following procedure in this case?
Install and activate WPML SEO.
Rebuild the Yoast SEO index.
Run any additional WPML synchronization or troubleshooting actions.
We would like to resolve this issue globally, as it affects several hundred URLs, and we would prefer not to set canonical URLs manually for each translated term.

Could you please advise on the recommended way to fix this?

August 5, 2026 at 4:24 pm #18194458

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for contacting WPML support.

As a first step, I recommend updating WPML and all WPML add-ons to the latest version (4.9.6) to benefit from the latest bug fixes, compatibility improvements, and security updates.

You can download the latest versions from My Account → Downloads on WPML.org. Instructions for updating WPML are available here:

https://wpml.org/faq/install-wpml/

If you do not see the updates in your WordPress admin, go to Plugins → Add New → Commercial and click Check for updates.

For full compatibility with Yoast SEO, you should install the WPML SEO glue plugin. There are no additional settings to configure—simply installing and activating the plugin is sufficient. Without it, issues such as incorrect hreflang tags can occur.

You can find more information here:

https://wpml.org/documentation/plugins-compatibility/using-wordpress-seo-with-wpml/

Before proceeding with any updates, please make sure to create a full backup of your website and database.