An XML sitemap is a file listing every URL you want Google to crawl. Without one, Google only crawls URLs reachable via internal links - slow. With a sitemap, new pages enter the index in hours instead of days.
Why this matters
Google's discovery flow starts with finding a URL and then crawling it. Without a sitemap, discovery depends on internal and external links. A new post nobody has linked to yet only surfaces when Google crawls the category page or homepage - which can take days or weeks.
With a healthy, current sitemap, Google receives a direct list of every URL plus a last-modified timestamp. It knows what is new and crawls immediately. In practice a new post listed in the sitemap can hit the index in 1-24 hours.
Secondary impact: error reporting. In Google Search Console > Coverage, Google explains which sitemap URLs were not indexed and why - blocked by robots.txt, noindex, soft 404, etc. Without a submitted sitemap those reports are empty and you lose visibility into indexing problems.
For Bing, Yandex, and other engines, a sitemap is essentially the only meaningful discovery signal. Without one, those engines provide partial coverage at best.
How to detect
WordPress 5.5+ generates a sitemap automatically at /wp-sitemap.xml. Visit and check. A 404 is a problem.
If you use an SEO plugin (Yoast / Rank Math / RankPlus / SEOPress), its sitemap replaces the core one at a different URL - usually /sitemap_index.xml. Verify both URLs.
Complementary check: in Google Search Console > Sitemaps. It should show a sitemap with status "Success" and a URL count. Empty list means no sitemap submitted.
Third check: /robots.txt should contain a Sitemap: line pointing at the map. Visit it and verify.
How to fix
Steps to set up a comprehensive sitemap:
Step 1 - confirm a sitemap exists. WordPress 5.5+ generates one automatically. If using an SEO plugin, ensure the sitemap is enabled in settings. Yoast: SEO > General > Features > XML sitemaps. Rank Math: Sitemap Settings.
Step 2 - verify it has the right content. Visit the sitemap in a browser. You should see sub-sitemaps per post type (posts, pages, products) and per taxonomy (categories, tags). Each sub-sitemap holds up to 1000 URLs by default (configurable).
Step 3 - submit to search engines.
- Google Search Console - Sitemaps > Add new sitemap. Enter the relative path (
sitemap_index.xmlorwp-sitemap.xml). - Bing Webmaster Tools - Sitemaps. Add the full URL.
- Yandex Webmaster (where relevant) - same flow.
Step 4 - add to robots.txt. Edit the file and add:
Sitemap: https://example.com/sitemap_index.xmlStep 5 - configure noindex exclusion. In SEO plugin settings, ensure pages with noindex (thank-you, login, search results) do not appear in the sitemap. Yoast handles this automatically. Rank Math: ensure "Exclude noindex pages from sitemaps" is on.
Common mistakes
First mistake: duplicate sitemaps. The SEO plugin emits one and WordPress core emits another. Google gets confused - both contain the same URLs. In SEO plugin settings ensure it disables the WP core sitemap.
Second mistake: a sitemap containing noindex URLs. A logical contradiction - the sitemap says "index", the noindex says "do not index". Make sure the plugin excludes noindex pages.
Third mistake: HTTP URLs on an HTTPS site. After migrating to SSL, every URL in the sitemap must start with https://. Otherwise Google flags them as redirects.
Fourth mistake: malformed lastmod. The <lastmod> field must be the international date-format standard (2026-05-07T10:00:00+02:00). Wrong format makes Google ignore it. Modern SEO plugins handle this correctly.
Fifth mistake: oversized single-file sitemap. Google accepts up to 50,000 URLs and 50MB per file. Large sites should split into sub-sitemaps. SEO plugins do this automatically.
Sixth mistake: not refreshing sitemap after big changes. After deleting a category or adding 100 posts, ensure the sitemap reflects reality. Plugins refresh automatically, but after major changes manually resubmit in Search Console.
Verifying the fix
Reload the sitemap and confirm it lists current URLs. In Search Console > Sitemaps verify status "Success" and that Submitted is close to Indexed (a small gap is normal). Large gaps need investigation via the Coverage report. After 4-6 weeks new posts should hit the index within hours of publishing.