Skip to content Skip to sidebar

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

Problem:
You are trying to set up hreflang on your site using WPML and RankMath for SEO, but hreflang is missing from all pages.
Solution:
If you're experiencing this issue, we recommend you try the following steps:
1. Navigate to WPML >> Languages.
2. Enable the "Display alternative languages in the HEAD section."
3. Press the Save button.
4. Clear all sorts of site/server/CDN cache and check if this resolves the issue.

If this solution does not apply to your case, or if it seems outdated, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if the problem persists. You can do so at WPML 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.

Tagged: 

This topic contains 1 replies, has 2 voices.

Last updated by niksaM-2 1 month, 3 weeks ago.

Assisted by: Noman.

Author Posts
September 8, 2025 at 1:59 pm #17383931

niksaM-2

Background of the issue:
I am trying to set up hreflang on my site using WPML and RankMath for SEO. I have the WPML SEO plugin installed. Here is a link to a page where the issue can be seen: hidden link.

Symptoms:
Hreflang is missing from all pages on my site.

Questions:
How can I set up hreflang with WPML and RankMath?

September 8, 2025 at 4:35 pm #17384599

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. To enable hreflang tags, please try to follow the below steps:

1. Go to the WPML >> Languages.
2. Enable the “Display alternative languages in the HEAD section.” option as you can see in the attached screenshot.
3. Press the Save button.
4. Clear all sorts of site/server/CDN cache and see if this resolves the issue.

Kindly let me know the results,
Thank you

SEO options.jpg
September 10, 2025 at 2:05 pm #17391176

niksaM-2

All good now thanks <3