WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Standard XML Sitemaps] XML Sitemap Critical Mistake (2 posts)

  1. Binh
    Member
    Posted 5 years ago #

    The bug:

    Line 39:
    echo mysql2date('Y-m-d\TH:i:s +0000', get_post_time('Y-m-d H:i:s', true), false);

    This causes the lastmod to be the post publish time. Which is always unchanged and make the search engine to not crawl the post.

    Here is the correct code:
    echo mysql2date('Y-m-d\TH:i:s +0000', get_post_modified_time('Y-m-d H:i:s', true), false);

    My request: Please fix this in the plugin code for future releases.

    Reference: I found this bug when checking the site map for Cheap Cars for Sale: cars.apmart.com/sitemap.xml

    http://wordpress.org/extend/plugins/standard-xml-sitemap/

  2. RavanH
    Member
    Posted 4 years ago #

    Working on a successor of the Standard XML Sitemap Generator. It incorporates your proposed get_post_modified_time and features some level of dynamic priority calculation.

    Keep your eye on http://wordpress.org/extend/plugins/standard-xml-sitemap/ for the first release (soon) if you are interested...

Topic Closed

This topic has been closed to new replies.

About this Topic