Hello,
I’m sorry to hear that you are facing issues with your sitemap not displaying all your posts. To resolve this issue, please follow these steps:
-
Validate Your Sitemap:
-
Ensure Posts Are Set to Index:
- Check if your posts are set to index in the Robots Meta settings. You can do this by heading over to Rank Math SEO → Titles & Meta and enabling the Index checkbox.
-
Exclude Post Terms (Optional):
- If needed, you can exclude posts belonging to specific post terms (categories and tags) from being featured in the sitemap. Here is an example of how to exclude post terms:

If after following these steps, the issue persists, please let us know, and we will be happy to assist you further.
Thank you for reaching out.
Sources:
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
Rank Math Sitemap Issues and Their Fixes » Rank Math
How to Exclude Content From Sitemap » Rank Math
How to Configure Sitemaps in Rank Math – Best Settings and Tips
Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
Hello,
Thank you for contacting Rank Math support.
Can you please follow these steps?
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/
That should fix the issue.
Please let us know if that does not. We are here to assist.
It worked. Is there a way that I can be automatically notified if there’s an issue with my sitemap?
I’m also seeing a sitemap error in Google Search Console.

Hello,
Your sitemap is working and validating fine. Please remove all previously submitted sitemaps from your GSC account and resubmit your main sitemap_index.xml. The issue should be resolved once Google recrawls it.
There is no option to notify you when the sitemap is cached. Please add the following filter to your site to disable sitemap cache and avoid such issues in the future:
/**
* 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');
Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
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.