WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] Images Missing in Sitemap (15 posts)

  1. Rajesh Namase
    Member
    Posted 2 years ago #

    WordPress Version: 3.4.1
    WordPress SEO version: 1.2.6

    I expected the plugin to do this: Add images in XML sitemap. Everything is fine in 1.2.5 but when I updated the plugin it shows 0 images in front of every post URL in sitemap.

    Instead it did this: Showing zero images in XML sitemap. Not adding images in sitemap.

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

  2. Rajesh Namase
    Member
    Posted 2 years ago #

    Just checked that everyone having same problem, checked sitemap on yoast.com same problem.

  3. ufukart
    Member
    Posted 2 years ago #

    Same problem.

  4. akdwivedi
    Member
    Posted 2 years ago #

    Same issue with me.

  5. Rajesh Namase
    Member
    Posted 2 years ago #

    Updated to 1.2.7 still same problem.

  6. spherical
    Member
    Posted 2 years ago #

    :\ Same here, running WP v3.4.1.

  7. spherical
    Member
    Posted 2 years ago #

    Found it! A missing "r".

    Line 549 in inc/class-sitemaps.php:

    if ( !isset( $img['sc'] ) || empty( $img['src'] ) )

    should be:

    if ( !isset( $img['src'] ) || empty( $img['src'] ) )

    Image counts are back.

  8. Keith Aldrich
    Member
    Posted 2 years ago #

    Same issues. Tried adding the missing "r"...still not working. Reverting back to 1.2.5 solved the problem.

  9. dp-wurzel
    Member
    Posted 2 years ago #

    @spherical
    Yes it works.... thanks!!!

    MfG dp-wurzel

  10. Sundance
    Member
    Posted 2 years ago #

    same here , adding r did not solve the problem,
    how did you revert to 1.2.5 ? and do you lose all seo configurations ?

  11. Sundance
    Member
    Posted 2 years ago #

    never mind , I downgraded and problem solved

  12. pepe
    Member
    Posted 2 years ago #

    The missing "r" and resaving the sitemap settings fixed the problem for me (3.4.1)

  13. Rajesh Namase
    Member
    Posted 2 years ago #

    Thanks spherical, problem is solved.

  14. JWSchaeffer
    Member
    Posted 2 years ago #

    Awesome-- thanks spherical.

    The line to be edited for me was on 544. The same missing "r" just a few lines below.

    Problems resolved :)

  15. katerina18
    Member
    Posted 1 year ago #

    I added the missing "r", deactivated and reactivated all plugins, resaved xml settings but nothing worked (3.4.1)
    I tried uploading the class-sitemaps.php from the previous plugin version and it partially solves the problem, although my portfolio sitemap (theme specific) still appears without images.
    Any suggestions please?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic