I use WPML plugin to work with several languages.
I use option to split languages in directories. For example:
site.url/ – English version home page (This is main language. home_url() == ‘site.url’);
site.url/tr/ – Turkish version home page;
site.url/ru/ – Russian version home page.
But in sitemap for this pages urls are:
site.url/ for English (Because it is home_url, result is good).
site.url/tr/page_name – Turkish ($page->post_name == ‘page_name’)
site.url/ru/page_name – Russian ($page->post_name == ‘page_name’)
But i don’t want to show page_name in front pages on other languages.
I want this urls in sitemap:
site.url/ for English
site.url/tr/ for Turkish
site.url/ru/ for Russian
How can i generate correct sitemap?
The ticket ‘Sitemap home page with WPML trouble’ is closed to new replies.