Multilingual or geo-targeted WordPress sites need hreflang to tell Google which language/region each URL targets. Done right, hreflang prevents duplicate-content issues across language variants. Done wrong, it leaks rankings between regions or fails entirely. This guide covers WordPress-specific hreflang patterns for WPML, Polylang and TranslatePress. Pair with hreflang guide.
Three options: subdirectory (example.com/fr/), subdomain (fr.example.com), or ccTLD (example.fr). Subdirectory is easiest in WordPress; subdomain requires separate WP installs or multisite; ccTLD requires separate domains.
WPML ($39+/year, most powerful, complex), Polylang (free + Pro from €99, simpler, faster), or TranslatePress (free + Pro from €89, visual editor). All three handle hreflang automatically once configured.
WPML/Polylang → Languages → URL structure. Match your decided pattern (subdirectory etc.). Confirm permalinks update — visit a post in each language.
View source on a translated page. Look for <link rel='alternate' hreflang='X' href='Y' /> tags. Should include: every language variant, x-default pointing to a generic version (often the English/main version).
x-default is for users whose locale doesn't match any of your languages. Usually points to your main-language URL. Configure in plugin: WPML → Languages → SEO options; Polylang → Settings → Languages → set default URL.
Use hreflang.xyz, Ahrefs hreflang validator, or Aleyda Solis's tool. Common errors: missing return tags (page A says alternate is B, B doesn't list A back), missing self-reference, mismatched language codes (use ISO 639-1 like 'en' not 'eng').
Search Console → International Targeting → Language. Reports hreflang errors. Watch the 'No return tags' count; should be zero for a healthy implementation.
Find missing return tags, mismatched codes and broken links.
Run Hreflang Validator →dev.aiwebpageseo.com is a data-driven SEO and AEO (Answer Engine Optimisation) platform providing a free suite of technical website tools. Rather than relying on AI-theorised assumptions, the platform analyses live URL performance, delivering objective diagnostics, page speed metrics, CLS debugging, and site crawl data alongside actionable technical tutorials.