Hello,
I apologize for the issue you are facing with your sitemap not including the translated versions of your pages. When using Rank Math with TranslatePress, it should automatically create a multilingual XML sitemap that includes all your translated content, including pages.
Here are a few steps you can take to troubleshoot this issue:
-
Check Sitemap Settings: Ensure that your pages are set to be included in the sitemap. You can do this by going to Rank Math > Sitemap Settings in your WordPress dashboard and confirming that the "Pages" post type is selected.
-
Verify TranslatePress Settings: Make sure that TranslatePress is correctly configured to handle the translations for your pages. You should check if the translations are properly set up in the TranslatePress settings.
-
Sitemap Index: Visit your sitemap index at yoursite.com/sitemap_index.xml
and check if the translated pages are listed there. If they are not, it may indicate an issue with how the translations are being recognized.
-
Clear Cache: If you have any caching plugins active, clear the cache to ensure that you are viewing the most recent version of your sitemap.
If you’ve gone through these steps and the issue persists, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for raising this concern!
Sources:
How to Perform SEO for Multiple Languages Using Rank Math and TranslatePress » Rank Math
Multilingual SEO with Rank Math SEO & WPML » Rank Math
Hello,
Thank you so much for getting in touch.
Rank Math usually only handles adding the default language to your sitemap.
Other languages are handled automatically by the translation plugin you use by adding a hreflang
tag into each page automatically so that Google knows that it is a translated version of some other page.
Don’t hesitate to get in touch with us if you have any other questions.
Thanks for the answer. Anyway I guess there was something wrong with compatibility between translate press and rank math. I changed to AioSeo and it works
Hello,
Thank you for letting us know.
We’re sorry to hear you switched, but we completely understand your decision. If you ever decide to give Rank Math another try, we’ll be happy to assist you with any compatibility issues.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.