Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] "Add images to XML Sitemap" – Does not add any images

  • Hello.

    I know that there is an issue with adding NextGEN Gallery images to the sitemap via this feature, however, I do have other images on my site that are not in a NG Gallery that are not added either.

    Some of these images are loaded via the background image in css, as well as the fact that 98% of the images on my website are PNGs (for transparency).

    Which, or both, or neither of these factors would prevent images from being added to the sitemap?


Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jon Cave


    Any images properly referenced in <img> tags within post content should be added to the sitemap. So CSS background images will not be added. PNGs and their transparency makes no difference.

    Hey Jon, thanks for the reply.

    I’m still developing my site, and it happens to be my first website as well as my first time using wordpress so I am really new to all this.

    For example, I have a product page such as this:

    If I go to the page in the wordpress admin that the image is on, and click on the html, I get this:

    <img class="alignleft size-full wp-image-115" title="Picasso-Lady-Sitting-BK-63" src="" alt="" /><strong>Picasso - "Lady Sitting in Chair"</strong>

    Is this correct markup, or is there still some issue as to why images such as this are not pulled into the sitemap?


    Is the <img> tag not being used correctly as per the example above? Could anyone illustrate the correct method?


    Alternatively, I did find some sitemap generators that are for images only. I know that you are not supposed to have two plugins that do sitemaps or they may conflict, but what if the second plugin only did the sitemap for images? Would there be some conflict or could this be an available option for me?

    Well what I ended up doing is unchecking “add images to sitemap” to avoid a possible conflict, and downloaded “Google XML Sitemap for Images” plugin. It generated a image sitemap with a different sitemap address, “sitemap-image.xml”.

    It actually works, and picks up the images in my posts. Assuming no conflicts or problems occur, this is a viable solution for anyone else with a similar problem. I hope Yoast’s plugin incorporates this function in a working manner for all users in the future. I understand the plugin is new and is in development, so I look forwards to using one plugin for sitemaps in the future!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] "Add images to XML Sitemap" – Does not add any images’ is closed to new replies.