Sitemap Validation for WordPress Sites

WordPress generates sitemaps automatically, but plugin conflicts, custom post types, migrations, and caching issues can break them silently. Validate what your plugins actually output.

WordPress Has a Sitemap. That Doesn't Mean It Works.

WordPress has generated sitemaps natively since version 5.5. If you're running Yoast SEO, Rank Math, or All in One SEO, you have an even more feature-rich sitemap. So your sitemap is handled, right?

Not necessarily. Having a sitemap and having a working sitemap are two different things. WordPress sitemaps break in ways that are invisible to the site owner -- and the CMS doesn't warn you when they do.

A plugin conflict silently disables your sitemap XML output. A migration changes your URL structure but the sitemap caches the old URLs. A custom post type you added six months ago was never included in the sitemap configuration. Your caching plugin serves a stale version of the sitemap to Google while the live site has moved on.

These aren't edge cases. They're the everyday reality of WordPress sitemap management. And the only way to catch them is to validate what your site actually outputs.

How WordPress Sitemaps Break

WordPress sitemaps seem like they should be bulletproof. The platform or a major SEO plugin generates them automatically. What could go wrong? Quite a lot, it turns out.

Plugin Conflicts

WordPress sites run an average of 20-30 plugins. Any plugin that interacts with URL routing, XML output, or caching can interfere with sitemap generation. Common scenarios:

  • A security plugin's XML-RPC blocking inadvertently blocks sitemap XML output
  • A redirect plugin rewrites the sitemap URL to a different path
  • Two SEO plugins installed simultaneously (Yoast and Rank Math, for example) generate competing sitemaps
  • A performance plugin's output minification corrupts the XML structure

Caching Issues

Caching is essential for WordPress performance, but it creates a specific sitemap problem: Google might be crawling a cached version of your sitemap while the actual sitemap has changed.

  • Page caching serves the sitemap from cache, meaning new posts don't appear until the cache expires
  • CDN caching can serve a stale sitemap for hours or days after content changes
  • Object caching can cause the sitemap generation query to return outdated data
  • Server-level caching (Varnish, Nginx FastCGI) may cache the sitemap XML response independently of WordPress

Custom Post Types Not Included

If your site uses custom post types -- portfolios, testimonials, products, events, case studies -- they may not be in your sitemap. WordPress core sitemaps include standard posts and pages by default. SEO plugins include custom post types only if they're set to public and the plugin's settings are configured to include them. A post type created by a theme or plugin might be public but not explicitly enabled in your sitemap settings.

Migration Aftermath

Site migrations are the single most common source of WordPress sitemap problems:

  • Domain change: The sitemap still references the old domain in some URLs
  • HTTP to HTTPS: Some URLs in the sitemap use http:// even though the site is now HTTPS
  • Permalink structure change: Old URL patterns remain in the sitemap cache
  • Hosting migration: Server paths changed and the sitemap generator can't write its cache file
  • WordPress multisite to single site: Sitemap still includes paths from the network structure

After any WordPress migration, validate your sitemap

It takes 30 seconds and catches problems that might not surface in Google Search Console for weeks. Don't assume the migration went cleanly -- verify it.

The WordPress Sitemap Landscape

Understanding which sitemap your site uses is the first step to validating it.

SourceSitemap URLNotes
WordPress Core (5.5+)/wp-sitemap.xmlBasic sitemap. Limited customization without code.
Yoast SEO/sitemap_index.xmlMost popular. Splits by post type, taxonomy, author.
Rank Math/sitemap_index.xmlSimilar to Yoast. Adds schema and image sitemap support.
All in One SEO/sitemap.xmlConfigurable. Check settings for which post types are included.
XML Sitemaps plugin/sitemap.xmlStandalone plugin. Generates on demand or on content change.
Custom generationVariesSites using custom code or WP-CLI scripts for sitemap generation.

Which sitemap is Google actually using?

Check your robots.txt (yoursite.com/robots.txt) for the Sitemap: directive. That's the URL Google follows. If you switched from one SEO plugin to another, the old plugin's sitemap URL might still be in robots.txt while the new plugin generates sitemaps at a different URL.

Validate your WordPress sitemap now

Check what your plugins actually output -- XML syntax, URL status codes, and protocol compliance. Free instant validation.

How Instant Sitemap Helps WordPress Sites

Instant Sitemap validates the actual output of your WordPress sitemap -- whatever plugin or method generates it. It checks what Google sees, not what your plugin dashboard says should be there.

XML syntax validation

Catches malformed XML caused by plugin conflicts, encoding issues, or corrupted cache files. One broken tag from a plugin conflict can invalidate your entire sitemap.

URL status code checking

Verifies every URL in the sitemap returns a 200 response. Flags 404s from deleted posts, 301s from changed permalinks, and 500s from server errors.

Sitemap index support

WordPress SEO plugins split sitemaps into multiple files (posts, pages, categories, authors) linked from an index. Instant Sitemap validates the index and every child sitemap.

Protocol compliance

Checks that the sitemap follows the sitemaps.org specification. Valid namespaces, proper URL formatting, correct lastmod date formats.

Cache-independent results

Validates the live response from your sitemap URL -- the same response Google gets. If your caching layer is serving stale content, you'll see the stale version, not the "correct" version your plugin thinks it's generating.

Common WordPress Sitemap Problems We Catch

ProblemCommon CauseWhat Happens
Sitemap returns 404Plugin deactivated or conflicting with another pluginGoogle can't read your sitemap at all
Malformed XML outputPHP error or warning injected into XML outputSitemap is unparseable; all URLs ignored
Missing custom post typesPost type not enabled in SEO plugin settingsEntire content categories invisible to Google
Stale URLs from before migrationCached sitemap not cleared after domain or permalink changeGoogle crawls old URLs that 404 or redirect
HTTP URLs on HTTPS siteSitemap generated before SSL setup; cache not purgedMixed protocol signals confuse search engines
Duplicate sitemaps from competing pluginsTwo SEO plugins active simultaneouslyGoogle processes two conflicting sitemaps
Empty or truncated sitemapPHP memory limit hit during generationSitemap appears valid but is missing most URLs

When to Validate Your WordPress Sitemap

After plugin updates. Especially after updating your SEO plugin, caching plugin, or any plugin that handles redirects or URL routing. Even minor version updates can change sitemap behavior.

After switching SEO plugins. If you migrate from Yoast to Rank Math (or vice versa), validate that the new plugin's sitemap is complete and that the old plugin's sitemap URL is no longer active or is properly redirecting.

After any migration. Domain changes, hosting changes, HTTP-to-HTTPS, permalink structure changes -- validate the sitemap after every one of these.

After adding custom post types. When you add a new custom post type (via a plugin or custom code), check whether it's appearing in the sitemap. If it's not, you'll need to configure your SEO plugin to include it.

Monthly as routine maintenance. WordPress sites change constantly. Posts are published, deleted, and updated. Plugins are added and removed. A monthly validation catches the slow accumulation of sitemap issues.

Get Started

1

Find your active sitemap URL

Check yoursite.com/sitemap.xml, yoursite.com/sitemap_index.xml, and yoursite.com/wp-sitemap.xml. Also check your robots.txt for the Sitemap: directive to confirm which URL Google is following.

2

Run the validation

Paste your sitemap URL into Instant Sitemap. The tool parses the XML, checks every URL, and reports errors, warnings, and overall sitemap health.

3

Fix issues in WordPress

For missing post types, update your SEO plugin settings. For 404 URLs, delete or redirect them and regenerate the sitemap. For caching issues, purge your sitemap cache. For XML errors, check for plugin conflicts.

4

Purge caches and revalidate

After making fixes, clear your page cache, CDN cache, and any object cache. Then validate again to confirm the live sitemap output is clean.

5

Resubmit in Google Search Console

Once the sitemap validates cleanly, resubmit it in Search Console to prompt Google to re-crawl the corrected version.

Pricing

Instant Sitemap is free. Validate your WordPress sitemap as often as you need -- after every plugin update, migration, or content change. No account required for basic validation.

Free

$0

  • Up to 3 items
  • Email alerts
  • Basic support

Pro

$9/month

  • Unlimited items
  • Email + Slack alerts
  • Priority support
  • API access

Part of Boring Tools -- boring tools for boring jobs.

Validate your XML sitemap

Check your sitemap for errors, broken URLs, and indexing issues. Free instant validation.