Support » Plugins and Hacks » Yoast SEO » "Last Modified 1970-01-01 00:00"

"Last Modified 1970-01-01 00:00"

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.
Skip to toolbar