-
Hello
I updated Rank Math today, and I cannot see the latest post in the sitemap post update. I have gone through all the guidance to get it to show, including changing the amount of posts per page (201 to 202, etc.), refreshing permalinks, and checking the cache address to exclude (WP Rocket).
Still nothing.
Can you check? Thanks.
-
Hello,
We apologize for the issue you are facing with your new post not showing in the sitemap after the update. It sounds like you’ve already taken several important steps to troubleshoot this issue.
Here are a few additional things you can check:
-
Check Sitemap Settings: Ensure that the new post type is not excluded from the sitemap. You can do this by navigating to Rank Math SEO → Sitemap Settings and confirming that the post type is enabled.
-
Flush Cache: Since you are using WP Rocket, make sure to clear the cache after making changes. Sometimes, cached versions can prevent updates from appearing.
-
Check for Plugin Conflicts: There might be a conflict with another plugin. You can use the Health Check plugin to help identify any conflicts.
-
Custom Canonicals: If you have set a custom canonical URL for the new post, it may not appear in the sitemap. Ensure that there are no custom canonicals set for this post.
-
Content Availability: Make sure that the post is published and not in draft or private status.
If you’ve checked all of these and the issue persists, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for raising this concern!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank MathThis 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.
I rolled back to version 1.0.250 and now it shows so there is something in the new update preventing posts showing in my sitemap.
Anyone going to assist?
Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
Please follow the steps below:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp2. 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. 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/
4. Remove all your sitemaps from your Google Search Console and re-submit only the index sitemap (
https://website.com/sitemap_index.xml
)If the issue persists, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
I had the same problem after customising canonical URLs by adding filters to the ‘functions.php’ file. Now I’m going to try making changes to the ‘Rank-Math.php’ file instead. Jeremy, could you please tell me if this is a good idea?
The filter:
add_filter( ‘rank_math/frontend/canonical’, function( $url ) {
if ( ! empty( $url ) ) {
$url = trailingslashit( $url ); // add trailing slash if missing
}
return $url;
});Hello,
You shouldn’t add custom canonical URL except you want to reference another page as Rank Math already automatically add self-referencing canonical URL by default.
Based on what you’ve attempted and referencing known causes:
– If a physical sitemap file (e.g. post-sitemap1.xml) exists on your server, it may override the dynamic one please check and remove any such file via FTP
Conflicts with caching plugins or server-level caching remain a common blocker. Make sure the sitemap files are excluded from all caching, and consider applying this filter in your theme’s rank-math.php file to disable the transient caching:
add_filter('rank_math/sitemap/enable_caching', '__return_false');
We hope this helps. Please let us know if you have further questions or concerns.
-
You must be logged in to reply to this ticket.