• anonymized-11892634

    (@anonymized-11892634)


    I’ve just noticed that one of the categories in my XML sitemap is set to Last Modified 1970-01-01 00:00.

    Has anyone else experienced this? I’ve tried disabling/enabling the XML sitemap and editing the contents of the categories.

    I noticed there is a similar post to this , but it is from a while ago and it remains unanswered.

    Example at http://www.chaiselongue.co.uk/sitemap_index.xml. It’s the /product_tag-sitemap.xml sitemap (drawn from woocommerce).

    Any help appreciated! 🙂

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 1 replies (of 1 total)
  • I have same problem. One of my custom taxonomy has date “1970-01-01 00:00”. There are some posts with terms from that taxonomy.

    In file /wordpress-seo/inc/class-sitemaps.php, there is a function build_root_map(). In line 274 there is code:

    // Retrieve the post_types that are registered to this taxonomy and then retrieve last modified date for all of those combined.
    // $taxobj = get_taxonomy( $tax );
    // $date   = $this->get_last_modified( $taxobj->object_type );

    We can at this point test if a variable $date is empty, and if yes, we can execute this code to solve the issue, but for some reason the author, commented this out.

Viewing 1 replies (of 1 total)
  • The topic ‘"Last Modified 1970-01-01 00:00"’ is closed to new replies.