Xml file for a multilingual site based on the Polylang plugin.

Hello friends! Today I will tell you about my sitemap xml. How to create a sitemap xml. Who does not know the sitemap xml is a file with links to the pages of the site, which informs search engines about the current structure of the site. It will help the search engines Google, Bing, Yahoo and Ask.com and others to index your site better.
sitemap xml wordpress
With such a sitemap xml, it is much easier for crawlers to see the complete structure of your site and extract it more efficiently. But there are problems with sitemap xml and Polylang plugin for multilingual site.
I wanted to make my blog bilingual, translate entries into English. Installed the Polylang plugin,
But I ran into such a problem. When using the All in One SEO plugin and the Polylang plugin, the sitemap xml is generated only in the default language (Russian), and not on the English pages that are presented in the / en / subdirectory. It would be nice if the All in One SEO plugin generated language sitemaps. Polylang is a pretty popular multi-language plugin and it works great with All-One SEO for editing metadata, it would be nice if the sitemap worked as well. I didn’t delete the All In One SEO Pack plugin for SEO, I like it. Disabling the block (XML sitemap) in the All In One SEO Pack plugin helped (go to the modules and click Deactivate in the XML sitemap block)
and installed the Google XML Sitemaps plugin,
to create custom XML sitemaps.My settings Google XML Sitemaps ….
———————————————————————————————–
—————————————————————————————-
—————————————————————————————–
———————————————————————————————
did not touch the rest.
After installation and configuration, everything became well. The English-language entries made by the Polylang plugin appeared in the sitemap of the xml file and are indexed by Google.
result:
Do not forget to add the link of your xml file to robots.txt file.
Your link will be in the settings Google XML Sitemaps here:
That’s all for today. Thanks for your attention.Meet me in the next post. Kissed, hugged, cried!
Read more:The perfect Robots.txt file for SEO.
How I love your comments, do not be shy!
Do you like the post? Help others find out about this article, click on social networks button.
Feedback on the project ‘My first blog’.
Leave a Reply