Hello,
We apologize for the issue you are facing with the sitemap dates. The “ date in your sitemap should ideally reflect the last modified date of the content within that sitemap. If you are seeing a discrepancy, it could be due to how the dates are being generated or cached.
To ensure that the last modified dates are correctly displayed in your sitemap, you can check the following:
-
Check the Date Schema: Ensure that your posts have the correct datePublished
and dateModified
properties set. You can verify this using the Rich Results Test tool by entering the URL of your post.
-
Sitemap Settings: Navigate to Rank Math SEO → Sitemap Settings in your WordPress dashboard and check if there are any settings affecting how dates are displayed.
-
Caching Issues: If you are using any caching plugins, clear the cache to see if that resolves the issue.
-
Custom Canonicals: If you have set custom canonical URLs for your posts, it may affect how they appear in the sitemap. Consider removing custom canonicals if they are not necessary.
If these steps do not resolve the issue, we recommend replying to this ticket with your site URL so a human agent from our support team can assist you further.
Thank you for bringing this concern to our attention!
Sources:
How to Change the Date & Time on Your Posts/Pages » 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.
Hey, thanks, but it is not helpfull.
Since in the sitemap it is correct, but noch in des sitemap index.
Can you help me further?
Hello,
Can you please try to follow the steps below and see if that works for you?
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. If the above steps don’t seem to work, kindly apply the following filter to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add a filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how it goes. Looking forward to helping you.
Thank you.