• Hi,

    Great plugin but I seem to be having one issue. First off, I’m using wordpress as more a CMS then a blog. For my site, no post has its own site, rather, I use tag pages pretty significantly. The problem I have is the LastChange date is only showing up on my pages and not on any tag or categories pages. Why is this? I have it checked to put the date it but its not showing up. I have the box checked for Include the last modification time. Any help on why it doesn’t show a last change date for tag and category pages?

    http://wordpress.org/extend/plugins/google-sitemap-generator/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter gcarson

    (@gcarson)

    anyone have any thoughts on this?

    Thread Starter gcarson

    (@gcarson)

    still nothing? I can’t figure out why its not indexing the category and tag pages?

    I have the same problem. In my case the sitemap file includes all posts wheever I manually rebuild the file but then goes back to only having header info in the file whenver I publish new posts.

    If you find out a resolution to this then please let me know.

    Thread Starter gcarson

    (@gcarson)

    Will do. I’m going to play around with the plugin to see what I can find. I don’t index individual posts, just the tag and archive pages. I’m not sure if last mod date matters for big G? But I figure having it there couldn’t hurt.

    Thread Starter gcarson

    (@gcarson)

    OK. I rigged the plugin to make the last modified date the time the sitemap was generated. I use wordpress as a CMS so almost all my pages change daily anyways. My issue is I upload info via a CVS file and the last modified date wasn’t showing up properly I tested tag pages by putting the last modified date function at the end to see what was showing up. It wasn’t showing up correctly. As a quick work around that works for me, I figured I would just output the last modified date as the current time when the sitemap is generated. In function render, starting on line 789 in sitemap-core.php, I changed added this line:

    `$blogtime = current_time(‘mysql’);’

    then i modified the output of the last modified function as follows:

    $r.= "\t\t<lastmod>" . $blogtime . "</lastmod>\n";

    This will output the current time. Hope this helps.

    Thread Starter gcarson

    (@gcarson)

    OK spoke to soon. Google tells me that the time is invalid. Will report back.

    Thread Starter gcarson

    (@gcarson)

    OK, this will output just the date and not the time. Having the time formatted the way it was didn’t conform the the way google likes it. This will work:

    $blogtime = date('Y-m-d',current_time('timestamp',0));

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Google XML Sitemaps] last change is blank’ is closed to new replies.