Hello,
We apologize for the issue you are facing with the sitemap not displaying your recent blog posts. Here are a few things to check that might help resolve this issue:
-
Sitemap Update Timing: Ensure that your sitemap is being updated correctly. Rank Math should automatically update the sitemap when new posts are published, but there can sometimes be delays.
-
Check Robots.txt: Make sure that your robots.txt file is not blocking the sitemap or the specific posts. You can check this in Rank Math under Rank Math SEO → General Settings → robots.txt.
-
Custom Canonicals: If you have set custom canonical URLs for these posts, they may not appear in the sitemap. Rank Math includes a self-referencing canonical by default, so removing any custom canonicals might help.
-
Plugin Conflicts: Sometimes, other plugins can conflict with Rank Math. You can use the Health Check plugin to identify any potential conflicts.
-
Caching Issues: If you are using a caching plugin, try clearing the cache to see if that resolves the issue.
-
Sitemap Submission: Ensure that you have submitted the correct sitemap URL to Google Search Console and that there are no errors reported there.
If you’ve checked all of these and the posts still do not appear in the sitemap, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.
Thank you for bringing this to our attention!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
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/
If they are still not showing, you may refer to our guide here for the common reasons why a URL is not getting included in your sitemap:
https://rankmath.com/kb/url-not-in-sitemap/
Looking forward to helping you.
Flushing the sitemap cache worked! Any idea why this was needed, or is this just something that happens sometimes? I’m on wpengine and I clear their cache regularly, so I don’t believe it was related to them.
Best,
Rianna
Just to be clear, I only did Step 1. Changed the sitemap # of posts to 201 and then saved permalink without changes.
Hello again,
The most possible reason can be that your website is heavily cached.
Please follow the rest of the steps, to prevent the sitemap from getting cached.
Hope that clarifies the issue for you. Please do not hesitate to let us know if you need our assistance with anything else.
Thank You.
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.