Free auditStart free
GuideWordPress · International SEO

WordPress hreflang and multilingual SEO

Set up WordPress hreflang with WPML, map real translations, and catch the reciprocal-link and URL mistakes Google ignores.

5 min
read
3
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

WordPress does not automatically know which URLs are translations of each other. With WPML, configure the site languages and URL format, then enable its SEO language links. Google says each language version must list itself and all other versions, with fully qualified URLs and reciprocal links. Verify the rendered links for real translations; Google does not use hreflang to detect page language.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Decide what should be linked

Connect pages that are actual equivalents

Use hreflang for localized versions of the same page, such as an English product page and its French translation. It tells Google these URLs are language or regional alternatives. Google says it does not use hreflang or the HTML lang attribute to detect the language of a page, and hreflang does not translate copy or replace a canonical tag.
Page pair

Same product translated for another market

Hreflang?
Yes, if each URL is a real localized version
Reason
The pages are alternate versions of the same product
Page pair

Two different products with similar names

Hreflang?
No
Reason
They are not the same content localized for different users
Page pair

US English and UK English pages with different pricing or shipping

Hreflang?
Often, if the pages target those regions
Reason
Regional variants can be mapped with language-region codes
Page pair

A page and its print view or tracking URL

Hreflang?
No
Reason
These are not language or regional versions

A language switcher helps visitors reach translations, while hreflang helps search engines understand the relationship. Keep each language's content, currency, availability, legal terms, and delivery details appropriate for the market. A translated menu alone does not make the underlying page a localized equivalent.

02How it works

Enable language and SEO settings in WPML

WPML's language setup guide (updated October 8, 2026) places language, switcher, URL, and SEO options under WPML → Settings. If you use Yoast SEO or Rank Math with the WPML SEO add-on and the SEO plugin's XML sitemap is on, WPML says the hreflang links go in the sitemap instead and the HEAD option is turned off, so they are not output twice. If your theme or another plugin writes language links too, choose one owner and remove duplicate or conflicting annotations.

  1. 01

    Set the source language

    During WPML setup, choose the language of the existing content, then add the languages you plan to publish. WPML also lets you create a custom language, for example Canadian French or Swiss German, when a country-specific variant is real for the content.

  2. 02

    Choose language URL structure

    Under WPML settings, select the format you intend to maintain: different languages in directories, a different domain per language (subdomains or separate domains), or the language name added as a parameter such as ?lang=es. Directories only work when your permalink structure is not the default one. Keep URLs stable after launch; moving formats changes page URLs and requires migration planning.

  3. 03

    Enable the SEO language links

    In WPML → Settings, open the SEO Options section and enable Display alternative languages in the HEAD section, which adds the hreflang links to the page <head>. WPML says this information is not visible on the front end, only in the source code. The Position of hreflang links option defaults to As early as possible (priority 1); Later in the head section (priority 10) is its suggested fix for theme or plugin conflicts.

  4. 04

    Publish matching translations

    Connect each translated post or page to its source item in WPML. Do not link unrelated pages just to create a complete language matrix.

  5. 05

    Check the switcher separately

    Use WPML → Settings → Language Switchers to choose where the visitor-facing switcher appears; WPML adds a switcher to the footer by default. Confirm that it links to the translation for the current page, not only to each language's homepage.

03Worth knowing

Meet Google's reciprocal hreflang rules

Every version lists itself and the other variants

A French page must include the French URL along with the English and other translated URLs.

Use absolute URLs

Include https:// and the full host. Google says alternate URLs must be fully qualified, including the transport method (http or https).

Keep links reciprocal

If page A points to page B, page B must point back to A. Google says that without return links, the tags will be ignored.

Use valid language-region codes

Identify the language first and add a region only when the variant is genuinely regional; a region alone is not a language code.

Use `x-default` for a real fallback

Google describes it as the value for any language not explicitly listed by an hreflang tag on the page.

Choose one implementation method

Google says HTML tags, HTTP headers, and sitemaps are equivalent from its perspective, and using more than one method has no benefit in Search and adds maintenance work.

Same alternate set on each language version
<link rel="alternate" hreflang="en" href="https://example.com/en/product" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/produit" />
<link rel="alternate" hreflang="x-default" href="https://example.com/language-selector" />
04How it works

Audit the rendered output

If WPML's setting is on but tags are missing or wrong, inspect conflicts with the theme or another SEO plugin and test its alternate output position. Continue with the WordPress SEO hub, WordPress XML sitemap guide, and the hreflang definition.

  1. 01

    Pick equivalent URLs in each locale

    Choose one translated product, one article, and one category. Confirm the editorial team considers each set equivalent before checking tags.

  2. 02

    Inspect the live page source

    Search the <head> for hreflang. Confirm every URL is absolute, each page includes itself, and all versions use the same alternate set.

  3. 03

    Check both directions

    Open each alternate URL and verify it points back to the others. Check that every URL returns the intended page and canonicalizes to itself or its own accepted canonical.

  4. 04

    Check localized visitor paths

    Use the language switcher from a product or article and confirm it lands on the corresponding translation. Check region-specific prices, shipping, currency, and legal information where those differ.

Sources · 3

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • wpml.org
  • google.com
  1. 01Language Setup | WPML Documentationwpml.org · checked 2026-10-24
  2. 02Localized versions of your pages | Google Search Centraldevelopers.google.com · checked 2026-10-24
  3. 03Language URL options | WPML Documentationwpml.org · checked 2026-10-24
Questions

Asked a lot.

3 questions people ask next, answered from the sources on this page.

01Does WordPress support hreflang by default?

WordPress core does not map multilingual translations for you. A multilingual plugin such as WPML can connect translated content and output hreflang annotations.

02Do hreflang links need to point back to each other?

Yes. Google says each language version must list itself and all other language versions, and that without reciprocal links the tags will be ignored.

03Should I use hreflang in HTML and the sitemap?

Usually choose one method. Google treats HTML tags, HTTP headers, and sitemaps as equivalent and says using more than one method has no benefit in Search and adds maintenance work.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane