WordPress.org

Ready to get started?Download WordPress

Forums

Google XML Sitemaps
LastChange - 1999-11-30 00:00 (2 posts)

  1. maghang
    Member
    Posted 3 years ago #

    My generated XML shows for the homepage:
    LastChange (GMT) 1999-11-30 00:00

    ...hmmm

    any recommendation?
    Thank you!

  2. cos-min
    Member
    Posted 3 years ago #

    Line: if($this->_lastMod>0) $r.= "\t\t<lastmod>" . date('Y-m-d\TH:i:s+00:00',$this->_lastMod) . "</lastmod>\n";
    Becomes: if($this->_lastMod>0) $r.= "\t\t<lastmod>" . $thedate . "</lastmod>\n";

    And before this line I've added: ( 943920000 means 1999-11-30 00:00 ) -> If date equals 1999-11-30 00:00 then print XML sitemap generated time.

    Line 1: if ( $this->_lastMod == "943920000" ) { $thedate = date('Y-m-d\TH:i:s+00:00',time()); }
    Line 2: else { $thedate = date('Y-m-d\TH:i:s+00:00',$this->_lastMod); }

    Edit file: wp-content/plugins/google-sitemap-generator/sitemap-core.php

    Check http://www.pacific54.com/sitemap.xml

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic