An XML sitemap is a file listing every URL you want Google to crawl. Without one, Google only crawls URLs reachable via internal or external links - slow. With a current sitemap, new pages enter the index in hours instead of days.
Why this matters
Google's discovery process has two stages: discovery (finds a new URL) and crawling (reads it). Without a sitemap, discovery is opportunistic - Google waits to land on the URL via a link and only then crawls. That delay can stretch days or weeks for new posts.
With a healthy, up-to-date sitemap, Google receives a list of every URL plus its last-modified timestamp. It knows what is new, what changed, and what to crawl next. In practice, a new post that appears in the sitemap can hit the index in 1-24 hours instead of days.
The sitemap also underpins Google Search Console reporting. Without submitting a sitemap, you do not get detailed indexing reports, blocked URL alerts, or duplicate diagnostics. The Coverage report compares what is in the sitemap against what Google actually crawled.
How to detect
WordPress 5.5+ generates a sitemap automatically at /wp-sitemap.xml. Visit the URL and confirm it lists sub-sitemaps for each post type and taxonomy.
If you use an SEO plugin (Yoast, Rank Math, RankPlus, SEOPress), its sitemap replaces the core one and lives at a different URL - usually /sitemap_index.xml. Verify both URLs.
Complementary check: in Google Search Console > Sitemaps - it should display the sitemap with status "Success" and a submitted URL count. Empty list means it was never submitted.
Third check: robots.txt should contain a Sitemap: line pointing at the map. Visit /robots.txt and verify.
How to fix
If there is no sitemap, the easiest setup is an SEO plugin:
- Yoast SEO - SEO > General > Features, enable "XML sitemaps". Available at
/sitemap_index.xml. - Rank Math - Sitemap Settings, enable "Sitemap". Available at
/sitemap_index.xml. - RankPlus - generated automatically on activation.
- SEOPress - XML/HTML Sitemap, enable and choose included content types.
After enabling:
- Visit the sitemap URL in the browser and confirm it loads with URLs.
- Submit the sitemap via Google Search Console > Sitemaps > Add new sitemap. Enter the relative path (
sitemap_index.xml). - Submit it in Bing Webmaster Tools too.
- Add
Sitemap: https://example.com/sitemap_index.xmlto robots.txt.
For WP core only, with no SEO plugin, the /wp-sitemap.xml map is enough for simple sites. Submit it to Search Console.
Common mistakes
First mistake: duplicate sitemaps. Your SEO plugin emits one and WordPress core emits another. Google gets confused. In SEO plugin settings, ensure it disables the WP core sitemap - usually a "Disable WordPress core sitemap" toggle.
Second mistake: a sitemap containing noindexed URLs. SEO plugins should auto-exclude noindex pages from the sitemap - confirm yours does.
Third mistake: an oversized single-file sitemap. Google accepts up to 50,000 URLs and 50MB per file. Large sites should split into sub-sitemaps (sitemap_posts.xml, sitemap_pages.xml). SEO plugins handle this automatically.
Fourth mistake: stale static sitemaps. A hand-written sitemap drifts. Use a plugin that regenerates on every publish.
Fifth mistake: HTTP URLs on an HTTPS site. After migrating to SSL, every sitemap URL must start with https://. Otherwise Google flags them as redirects.
Verifying the fix
Reload the sitemap and confirm it shows current URLs. In Search Console > Sitemaps verify status "Success" and that Submitted is close to Indexed. A large gap means URLs are not being indexed - investigate via Coverage. After 4-6 weeks, new posts should enter the index within hours of publishing.