Last updated: November 8, 2026
Quick answer: An XML sitemap is a file that lists the pages you want search engines to find. It doesn’t improve rankings by itself, but it helps Google discover and recrawl your important pages, especially on new sites, large sites, or sites with pages that aren’t well linked. On WordPress, your SEO plugin creates one automatically. Submit it in Google Search Console, list it in robots.txt, and make sure it only contains live, indexable pages.
What is an XML sitemap?
An XML sitemap is a machine-readable list of URLs on your site, often with the date each page was last changed. Search engines use it as a guide to what exists and what’s been updated. It’s different from an HTML sitemap, which is a page of links written for visitors.
Do you need a sitemap?
Google says small, well-linked sites may not need one, but a sitemap rarely hurts and is especially helpful when:
- The site is new and has few links pointing to it
- The site is large (hundreds of pages or more)
- Some pages aren’t easy to reach through your navigation
- You publish or update content often
For most small business sites on WordPress, it’s worth having because it’s automatic and costs nothing.
What a good sitemap includes (and leaves out)
- Include: pages you want in search results, such as service pages, location pages, blog posts and key landing pages.
- Leave out: redirected URLs, 404 pages, noindexed pages, duplicates, thank-you pages, and tag or archive pages you don’t want indexed.
- Use canonical URLs only, with the same version of your domain (https, with or without www) that your site uses.
- Keep lastmod accurate. Google uses the last-modified date when it’s consistently accurate and ignores it when it isn’t. Google ignores the priority and changefreq values.
Limits
A single sitemap file can list up to 50,000 URLs or be up to 50 MB uncompressed. Larger sites split their URLs into several sitemaps and list them in a sitemap index file. WordPress SEO plugins do this for you.
How to set up and submit a sitemap on WordPress
- Use one sitemap source. Yoast, Rank Math and other SEO plugins create a sitemap (often at /sitemap_index.xml). WordPress also has a basic built-in sitemap at /wp-sitemap.xml, which SEO plugins usually turn off. Avoid running two.
- Check what’s included. Open the sitemap and confirm it lists the right content types and none you’ve hidden from search.
- Submit it in Google Search Console under Indexing โ Sitemaps, and in Bing Webmaster Tools.
- Add it to robots.txt with a line like
Sitemap: https://www.example.com/sitemap_index.xml. - Review the Sitemaps report occasionally for errors, and the Pages report for sitemap URLs that aren’t indexed.
Google retired its sitemap “ping” URL in 2023, so there’s no need to ping. Search Console and robots.txt are enough.
Frequently asked questions
Does a sitemap guarantee my pages get indexed?
No. It helps Google find pages, but Google still decides what to index based on quality and usefulness.
Should I include images and videos?
Image and video sitemap entries can help those files get found, and most SEO plugins add images automatically. They’re most useful if images or video are central to your content.
How often should I resubmit my sitemap?
You don’t need to. Google rechecks submitted sitemaps on its own. Resubmit only if you change the sitemap’s address.
Want a technical SEO check?
We review sitemaps, indexing, redirects and site structure as part of our SEO services. Related reading: the importance of 404 pages for SEO. Or request a free online business audit.




