Ensure images are indexed

  • I’m trying to make sure my images are included in the sitemap. When I look at the sitemap file, it has page url’s, but no mention of images. The images I want to include may be hard to find. So, I would like to be able to verify that they are in the sitemap. I have some images that are contained within a slider plugin. The slider is displayed on the page within a page builder using short code. The page builder is Nimble Builder. It is not supported by Rank Math.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

    Thank you for contacting Rank Math today, and we apologize for any inconvenience this may have caused.

    Rank math usually follows allows the option to include images in their attached sitemap URLs. You can enable the option to include your images in sitemap in Rank math > Sitemap Settings > General:

    You may view the images added to each post by going to the post/page sitemap if the option is enabled.:

    I hope this information is helpful, and please do not hesitate to contact us if you require any additional support.

    Thank you.

    I’m not getting that “image” tab you’re showing. I do have the images in sitemaps turned on. Most of my pages are built with a page builder, but I deliberately made a test page in glutenburg and put an image in it to test this. No “image” tab.


    I checked your sitemap and the image tab is there. I can also see the test page and the gallery page both have images included in the sitemap. However, the gallery page only has two images in the sitemap while I can see there are seven images in the slider. Please check the screenshot that I have attached in the sensitive data section.

    Also, Can you please follow these steps and check if the number of images increases in the sitemap?
    1. Flush the Sitemap cache by following this video screencast:

    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:

    Let us know how that goes. Looking forward to your update.


    It was a browser caching issue that prevented the images tab from showing up. Once I cleared the cache, the tab appeared. What it confirmed is that my images contained in the page builder are not in the sitemap. The 2 images found on the Gallery page were the two images I put in the Gutenberg editor for testing. None of the images in the page builder or slider were found.
    I have an idea for a work around, but I would need to be able to stop the sitemap from automatically updating. What I would do is put all the images I want in the site map in the Gutenberg editor. That way I have the exact same images in the Gutenberg editor as I have in the page builder. Create the sitemap. Then delete the images in the Gutenberg editor. The problem is, when I delete the images in the Gutenberg editor, the site map updates to remove them from the site map as well.


    Unfortunately, Rank Math can only add images that have set as post attachments. Gutenberg automatically adds images as post attachments and removes them when they are deleted from the post.

    It seems your gallery plugin does not set images as post attachments, so they are not detected by. Please may I have the name of your gallery plugin so we can check that this assumption is correct, or see why the gallery is not creating post attachments.

    An alternative solution would be to customize the code snippet below and add it to your theme functions.php file. You would need to add check for a gallery and automatically add the gallery images to the sitemap if a gallery exists:

     * Filter images to be included for the post in XML sitemap.
     * @param array $images  Array of image items.
     * @param int   $post_id ID of the post.
    add_filter( 'rank_math/sitemap/urlimages', function( $images, $post_id ){
    	return $images;
    }, 10, 2);

    I hope that helps. Let us know if you have questions.

    There are two issues. Images are not found in pages built with the page builder. And images are not found in the slider, even on this page which is not using the page builder: https://jetstreamcarpetcleaning.com/slide-anything-popup-preview/
    The slider is called “Slide Anything”. When I set Rank Math to redirect attachments, here’s where one of the slider images tries to go: https://jetstreamcarpetcleaning.com/sa_slider/final-slider/
    That’s not actually a page, but that’s where it redirects to.


    Could you please clarify if the image slider is added inside the actual post content of the pages?

    Our plugin only adds the images that are found inside the actual post content and if those are outside of that it won’t be included.

    If you would like us to take a closer look and provide further insights, please share a set of working WP credentials in the sensitive data section so our team can fully debug the situation.

    Looking forward to hearing back from you.

    I will continue this after the weekend.


    Sure, no problem. We can continue this after the weekend.

    We’re Looking forward to helping you. Thank you.


    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.

Viewing 9 replies - 1 through 9 (of 9 total)

The ticket ‘Ensure images are indexed’ is closed to new replies.