Hello,
We apologize for the issue you are facing with your recent blog post not being included in the Rank Math sitemap. Here are a few things you can check to troubleshoot this issue:
-
Post Status: Ensure that the blog post is published and not set to draft or private. Only published posts will appear in the sitemap.
-
Visibility Settings: Check if the post is set to be indexed. If you have set it to noindex, it will not appear in the sitemap.
-
Custom Canonicals: If you have added a custom canonical URL to the post, it may not show up in the sitemap. Rank Math includes a self-referencing canonical by default, so removing any custom canonical might help.
-
Sitemap Settings: Go to Rank Math SEO → Sitemap Settings and ensure that the post type is included in the sitemap settings.
-
Plugin Conflicts: Sometimes, other plugins can conflict with Rank Math. You can check for conflicts using the Health Check plugin.
If you’ve checked all of these and the issue persists, we recommend replying to this ticket with any additional details or screenshots, and a human agent from our support team will assist you further.
Thank you for bringing this concern to our attention!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
Hi there
I checked all those points and they do not apply. The URLs for all my blog posts are canonical and they get referenced in the sitemap.
Thanks,
Nick Thibieroz
I spent several hours investigating with no success:
The date of the post-sitemap.xml on the website is still dated 13 August so it appears it doesn’t get auto-generated by Rankmath.
I disabled all cache (server and local), and manually forced Rankmath to recreate the sitemap using the above instructions – still the same problem.
I tried a different theme – same result.
The blog that does not appear was configured in the exact same way as others – it’s definitely published and indexed like the others are.
What on earth could be causing Rankmath SEO not to recreate the sitemap?
Hello,
In this case, please follow these steps to flush your sitemap cache:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/
3. Disable the transient cache for the sitemap by applying this filter. This will make sure that your XML sitemap always reflects the latest changes on your site:
/**
* Filter if XML sitemap transient cache is enabled.
*
* @param boolean $unsigned Enable cache or not, defaults to true
*/
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
If you’re not sure how to add this code, you can follow this guide:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Also, head over to your website files /uploads/rankmath/, and delete any XML files from that path.
Looking forward to helping you.
Hello @offroblox,
Please follow the steps shared by my colleague above.
If you are still experiencing the issue, you can open a new ticket and share more details of the issue so that we can provide personalized support.
We look forward to helping you.
Thank you.