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.
| Source | Sitemap URL | Notes |
|---|---|---|
| WordPress Core (5.5+) | /wp-sitemap.xml | Basic sitemap. Limited customization without code. |
| Yoast SEO | /sitemap_index.xml | Most popular. Splits by post type, taxonomy, author. |
| Rank Math | /sitemap_index.xml | Similar to Yoast. Adds schema and image sitemap support. |
| All in One SEO | /sitemap.xml | Configurable. Check settings for which post types are included. |
| XML Sitemaps plugin | /sitemap.xml | Standalone plugin. Generates on demand or on content change. |
| Custom generation | Varies | Sites 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
URL status code checking
Sitemap index support
Protocol compliance
Cache-independent results
Common WordPress Sitemap Problems We Catch
| Problem | Common Cause | What Happens |
|---|---|---|
| Sitemap returns 404 | Plugin deactivated or conflicting with another plugin | Google can't read your sitemap at all |
| Malformed XML output | PHP error or warning injected into XML output | Sitemap is unparseable; all URLs ignored |
| Missing custom post types | Post type not enabled in SEO plugin settings | Entire content categories invisible to Google |
| Stale URLs from before migration | Cached sitemap not cleared after domain or permalink change | Google crawls old URLs that 404 or redirect |
| HTTP URLs on HTTPS site | Sitemap generated before SSL setup; cache not purged | Mixed protocol signals confuse search engines |
| Duplicate sitemaps from competing plugins | Two SEO plugins active simultaneously | Google processes two conflicting sitemaps |
| Empty or truncated sitemap | PHP memory limit hit during generation | Sitemap 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
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.
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.
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.
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.
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
Related Articles
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.