My generated XML shows for the homepage:
LastChange (GMT) 1999-11-30 00:00
...hmmm
any recommendation?
Thank you!
My generated XML shows for the homepage:
LastChange (GMT) 1999-11-30 00:00
...hmmm
any recommendation?
Thank you!
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
This topic has been closed to new replies.