Sitemaps in multilingual websites
-
- rel=”alternate” hreflang=”” (including x-default) is not automatically added to <url> in the xml sitemaps (generated by the RankMath plugin), if some translation plugin is also installed.
At the same time, the xml sitemaps contain <url> pages in different languages.
Write how to make rel=”alternate” hreflang=”” (including x-default) be added to in xml sitemaps (maybe there are some filters) or add this functionality.
I’m using Polylang, but as far as I understand this problem is common regardless of the translation plugin.
You yourself write that it is important for SEO here https://rankmath.com/blog/hreflang-tags/ (in point 6.3).
- Problem with multilingual links when using [rank_math_html_sitemap]
On the page where the shortcode is installed:
- record categories and product categories (woocommerce) are displayed in the language that = the language of the current page – this is true;
- pages, records and products (woocommerce) are displayed in all languages ??at the same time (regardless of the language of the current page) – this is NOT true.
Write how to fix it.
PS. I use the latest version of your code https://rankmath.com/kb/polylang-compatibility/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.