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.
- The topic ‘[Plugin: Standard XML Sitemaps] XML Sitemap Critical Mistake’ is closed to new replies.