Hello,
We apologize for the issue you are facing with your WPML translated blog posts not appearing in the Rank Math sitemap XML.
Rank Math is designed to automatically include translated posts/pages in the sitemap. If your translated posts are not showing up, it could be due to a few reasons:
-
Sitemap Configuration: Ensure that your sitemap settings are correctly configured in Rank Math. You can check this by navigating to Rank Math SEO → Sitemap Settings in your WordPress dashboard.
-
WPML Compatibility: Make sure that WPML is properly set up and that the translations are published and not in draft mode. Only published posts will appear in the sitemap.
-
Caching Issues: Sometimes, caching plugins can interfere with the sitemap generation. If you are using a caching plugin, try clearing the cache and regenerating the sitemap.
-
Custom Canonicals: If you have set custom canonical URLs for your translated posts, they may not appear in the sitemap. Rank Math includes self-referencing canonicals by default, so ensure that custom canonicals are removed if you want all posts to show up in the sitemap.
-
Code Snippets: In some cases, adding specific code snippets to your theme’s rank-math.php
file can help resolve issues with translated homepages or other sitemap entries. You can refer to the Multilingual SEO with Rank Math SEO & WPML documentation for more details on this.
If you’ve checked all of these and the issue persists, we recommend replying to this ticket, and a human agent from the Rank Math Support team will take over and assist you further.
Thank you for raising this concern!
Hello,
Thank you for contacting Rank Math support.
You seemed to have marked this ticket as resolved.
We’re just following up to know if you have any other concerns that we can assist you with. If your issue has been resolved, please let us know so we can mark this ticket as closed.
Thank you for choosing Rank Math.