-
Hi,
In the sitemap generated by rank math, the number of images shown is incorrect. I wanted to check with yoast if it shows the right number of images, so I installed it an it is showing the number of images correctly on its sitemap.
I would also like to know why the Last Modified column for categories and tags are blank but yoast shows when they are last modified?
-
Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
Can you please follow these steps?
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/xXXhDt2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server.
After checking all that, remove all your sitemap/s from Google Search Console and submit only the primary sitemap (sitemap_index.xml).
Once done, clear your website and serverβs cache (if any) and wait for Google to crawl the website again and see if that helps.
Please let us know if that does not. We are here to assist.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Thanks for your reply. I have found the issue and it looks like a bug. Rank Math is calculating number of images in the gallery twice.
For example: If I have 20 images attached in my gallery, it is showing as 40 images.
I will attach a link in sensitive data field. Check it out!
That linked post has 28 images attached (23 in gallery and 5 as media files) and yoast sitemap is showing number of images as 28 only.
But rank math is showing as 51 images because it is doubling the number of images in the gallery. (28+23 = 51).
Update: When I rolled back to version 1.0.92, it has started to show correct number of images of the sitemap.
After that, I installed the latest version now and it is also showing the correct number of images.
Hello,
Could you confirm if you’re using a gallery plugin to add the images? If yes, please let us know the name of it along with the name of any page builder and theme you’re using.
Also, please confirm if that is the only post where you’re facing the issue or if it is site-wide.
Looking forward to hearing back from you.
Thank you.
I am not using any gallery plugin. I am using default gallery option in the WordPress and theme I am using is Fairy theme.
Sitemaps of all the post’s were facing this issue but now it is showing the right number of images, after I rolled back to version 1.0.92.
I would also like to know why the Last Modified column for categories and tags are blank in the sitemap?
Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
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.
ββββββHi there I have the same problem my post contains over 20 photos and the number that appears on the site map is just 5 and I used Add from server plugin to import photos to my blog, please help my to define problem and solve it
Hello @khaledramadan,
Thank you for reaching out to us and sorry for the inconvenience you encountered with our plugin.
Can you please try following these steps here? https://support.rankmath.com/ticket/sitemap-is-showing-incorrect-number-of-images/?view=all#post-414570
If that doesn’t help, let us know and we will further troubleshoot the issue.
Looking forward to helping you.
hey, thanks for the response I implemented all steps and waiting for google’s acceptance of the new sitemap I will reply here soon thank you again, Jeremy!
Hello @khaledramadan,
Do let us know how that goes.
In the meantime, if you do have other issues or questions in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you.
Thank you.
I’m having the same issue. There are 5 images on my page, Rankmath shows 9. How do I submit a new sitmap?
Hello @michael-3942,
Can you please try following the steps below to see if that works for you?
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. If the above steps doesn’t seem to work, kindly apply the following filter code to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');Here’s how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/If the issue persists, please open a new forum ticket and we’d love to assist you there.
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.
The ticket ‘Sitemap is showing incorrect number of images’ is closed to new replies.