Yoast SEO
XML Sitemap - Google Webmaster errors (6 posts)

  1. mikequery
    Posted 1 year ago #


    I recently installed and ran the plugin to create a sitemap. /sitemap_index.xml works fine but there are some errors in Google Webmaster Tools I'm trying to resolve.

    Sitemap Errors
    It says I have 4 sitemaps that are getting 404s...they're all custom stuff from either the theme I'm using (called Avada) or from a plugin called Edit Flow. They are faq_category-sitemap.xml, /pec_events_category-sitemap.xml, /portfolio_category-sitemap.xml, and /post_status-sitemap.xml. I've tried excluding them in the XML settings but they are still showing up in webmaster tools.

    Index Errors
    I'm getting 6 counts of this error: An invalid date was found. Please fix the date or formatting before resubmitting.

    It says the lastmod values for these 6 occurrences have a date of 1969...not sure where in the sitemap those instances are, or how to fix them.

    Any ideas? Thanks for taking the time to read this!


  2. mikequery
    Posted 1 year ago #

    Any ideas?

  3. eppand
    Posted 1 year ago #

    I am seeing the same issue. I am excluding all taxonomies from the XML sitemap configuration. Using version Not sure why it's including the empty xml file.

  4. jonready
    Posted 1 year ago #

    I have the same issue. Anyone else find a solution?

  5. Egill R. Erlendsson
    Posted 1 year ago #

    Put this in your functions.php, that should do the trick.

    function sitemap_exclude_taxonomy( $value, $taxonomy ) {
    	if ( 'post_status' == $taxonomy )
    		return true;
    add_filter( 'wpseo_sitemap_exclude_taxonomy', 'sitemap_exclude_taxonomy', 10, 2 );
  6. superbigcat
    Posted 10 months ago #

    What this snippet does exactly?

    Does it exclude all taxonomy from sitemap ?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic