seo

XML Sitemap

An XML sitemap is a structured file that lists every important URL on your website so search engines can discover, crawl, and index your content efficiently. It uses a standardized XML format def...

XML Sitemap

Who this is for: WordPress site owners who want search engines to find and index their pages faster — no coding experience required.

Affiliate disclosure: Some links on this page may earn WPSchool a commission at no extra cost to you.

An XML sitemap is a structured file that lists every important URL on your website so search engines can discover, crawl, and index your content efficiently. It uses a standardized XML format defined by the sitemaps.org protocol, which Google, Bing, and other major search engines all support.

Answer capsule: An XML sitemap is an XML file that lists a website’s URLs and optional metadata — last modified date, update frequency, priority — so search engines can discover and index pages without relying solely on link crawling. WordPress generates one automatically when most SEO plugins are active.

Why XML Sitemaps Matter for WordPress

Search engines crawl the web by following links. If a page has few or no inbound links, crawlers may never find it. An XML sitemap acts as a direct map — you tell search engines exactly what exists, and they don’t have to guess. On sites with 50+ pages, product archives, or frequent new posts, this has a measurable impact on how quickly new content appears in search results.

We see this often on client sites with large WooCommerce catalogs: products added Monday can appear in Google Search Console’s coverage report by Wednesday once a sitemap is submitted, versus a week or more without one.

What an XML Sitemap Looks Like

A minimal sitemap entry looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/about/</loc>
    <lastmod>2026-04-20</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
</urlset>

The <loc> tag is the only required field. <lastmod>, <changefreq>, and <priority> are optional — but providing accurate <lastmod> dates helps search engines prioritize re-crawling updated pages.

How to Generate an XML Sitemap in WordPress

WordPress does not generate a sitemap on its own, but most SEO plugins handle this automatically. In our testing, installing Rank Math or Yoast SEO creates a sitemap at yourdomain.com/sitemap_index.xml within seconds of activation — no configuration required. Both plugins also split large sites into multiple sitemap files (a sitemap index) to stay within the 50,000 URL limit per file set by the sitemaps.org specification.

After generation, submit the sitemap URL to Google Search Console under Sitemaps → Add a new sitemap. This is a one-time step that gives Google a direct line to your URL inventory.

We manage 200+ client sites and submit every sitemap to both Google Search Console and Bing Webmaster Tools on launch day. Bing is often overlooked, but it drives meaningful traffic in certain niches, particularly finance and local services.

Common XML Sitemap Problems

The most frequent issue we encounter is a sitemap that includes pages marked noindex — this sends conflicting signals to search engines. Your sitemap should list only the URLs you want indexed. Both Rank Math and Yoast exclude noindex pages from sitemaps by default as of their 2024 versions, but verify this if you’ve customized your robots settings.


  • Robots.txt — the companion file that controls which pages crawlers are allowed to visit
  • Search Console — Google’s tool for monitoring crawl coverage and sitemap status
  • Canonical URL — prevents duplicate-content issues that can undermine sitemap accuracy
  • Crawl Budget — how sitemap quality affects how often Googlebot returns to your site
  • Schema Markup — structured data that complements sitemap signals for richer indexing

Additional Reading

Last verified: April 2026