Hello @angelseee,
Thank you for your query and we are so sorry about the trouble this must have caused.
To ensure that your sitemap is updated and the newest posts are listed, please follow the steps below:
- Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
- 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/
- Apply the following filter code to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add filter to your WordPress site:https://rankmath.com/kb/wordpress-hooks-actions-filters/
Hope that helps.
The problem with chaotic sorting by lastmod is observed ONLY in maps for tags: post_tag-sitemap.xml
In maps for posts: post-sitemap.xml, sorting by lastmod occurs correctly.
Your advice did NOT SOLVE the problem with chaotic sorting by lastmod in tag maps: post_tag-sitemap.xml!
-
This reply was modified 1 year, 7 months ago by
angelseee.
Hello @angelseee,
Apologize for the inconvenience.
At the moment, the post tags aren’t sorted by their lastmod but by the ascending order in which they are created.
With that said, this shouldn’t cause an issue with how Google is crawling them.
Hope that helps.
When the site is very large, it is very convenient to use sitemap.xml to control new events occurring on it.
Please make the cards for tags: post_tag-sitemap.xml the same logical sorting by lastmod as in the cards for posts: post-sitemap.xml!
I hope for changes for the better in my favorite plugin “Rank Math”!
Hello @angelseee,
We have shared your suggestion with the developers and will let you know if they decide to change the sorting of the tags in the sitemap.
Please do not hesitate to let us know if you need our assistance with anything else.
Thank you.