WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
"Add images to XML Sitemap" - Does not add any images (6 posts)

  1. whiteweazel21
    Member
    Posted 3 years ago #

    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?

    Thanks

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Jon Cave
    WordPress Dev
    Posted 3 years ago #

    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.

  3. whiteweazel21
    Member
    Posted 3 years ago #

    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:
    http://www.bookboxshop.com/shop/picasso-lady-sitting-in-chair-bk-63/

    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="http://www.bookboxshop.com/wp-content/uploads/2010/12/Picasso-Lady-Sitting-BK-63.png" 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?

    Thanks

  4. whiteweazel21
    Member
    Posted 3 years ago #

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

    Thanks!

  5. whiteweazel21
    Member
    Posted 3 years ago #

    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?

  6. whiteweazel21
    Member
    Posted 3 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic