Indexing

WordPress XML Sitemap Guide: Create, Submit to Google and Fix Errors

An XML sitemap is a list of the pages you want search engines to find. WordPress makes a basic one automatically, but most sites do better with a cleaner sitemap from an SEO plugin. This guide shows where yours is, how to submit it to Google and Bing, and how to fix the errors Search Console reports.

By Muhammad IrfanUpdated 27 September 20267 min read

What is an XML sitemap?

Quick answer

An XML sitemap is a file that lists the URLs on your website you want search engines to crawl and index, often with the date each page last changed. It helps Google and Bing find new and updated pages faster, especially on new sites, large sites and pages with few internal links.

A sitemap does not guarantee indexing and it does not improve rankings on its own. It is a discovery tool: it tells search engines what exists. Pages still need to be good, and they still need internal links.

Here is what a small sitemap looks like:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/boiler-service/</loc>
    <lastmod>2026-09-01</lastmod>
  </url>
  <url>
    <loc>https://example.com/blog/bleed-a-radiator/</loc>
    <lastmod>2026-08-14</lastmod>
  </url>
</urlset>

Where is my WordPress sitemap?

SetupSitemap address
WordPress core (no SEO plugin)yoursite.com/wp-sitemap.xml
Yoast SEOyoursite.com/sitemap_index.xml
Rank Mathyoursite.com/sitemap_index.xml
SEO Rank Geniusyoursite.com/sitemap_index.xml
All in One SEOyoursite.com/sitemap.xml

When an SEO plugin creates its own sitemap, it normally switches off the WordPress core sitemap to avoid two copies.

Not sure which you have? Open yoursite.com/robots.txt. Most plugins add a Sitemap: line there that shows the exact address.

How to create an XML sitemap in WordPress

Option 1: Use the built in WordPress sitemap

Since WordPress 5.5, every site has a basic sitemap at /wp-sitemap.xml. It lists posts, pages, categories, tags and author archives. It works, but you cannot easily exclude thin pages, it includes author and tag archives most sites do not want indexed, and it does not include images.

Option 2: Use an SEO plugin (recommended)

An SEO plugin replaces the core sitemap with a sitemap index that splits content into smaller files, removes noindexed pages automatically, and adds image data. This is the better option for almost every site.

Option 3: An XML sitemap generator tool

Online XML sitemap generators crawl your site and give you a file to upload. They are useful for static sites, but on WordPress the file goes out of date as soon as you publish. A plugin sitemap updates itself, so there is no reason to use a static generator on WordPress.

What a good sitemap includes, and what it leaves out

IncludeLeave out
Published posts and pages you want in searchPages marked noindex
Product and category pages that have contentThin tag archives and empty categories
The canonical version of each URLRedirected URLs, duplicates and URLs with tracking parameters
An accurate lastmod dateLogin, cart, checkout and thank you pages
Images inside your pagesAttachment pages

A sitemap should list only pages you would be happy to see in search results.

  • Limits: one sitemap file can hold up to 50,000 URLs or 50 MB uncompressed. Larger sites use a sitemap index that points to several files.
  • lastmod matters: Google uses the last modified date when it is consistently accurate. Only change it when the content really changes.
  • priority and changefreq do not matter to Google: Google ignores both values. Other search engines may read them, but do not spend time tuning them.
✓
Sitemaps do not replace links A sitemap full of pages that no other page links to is a warning sign. Those are orphan pages, and Google treats them as unimportant even when they are listed.

How to submit a sitemap to Google

  1. Open Google Search Console and select your property.
  2. Go to Indexing, then Sitemaps.
  3. Under Add a new sitemap, type the sitemap path, for example sitemap_index.xml, and click Submit.
  4. Wait for the status to show Success. The report then shows how many URLs were discovered.
  5. Check Indexing, then Pages over the next weeks to see which listed URLs are indexed and why others are not.

You only need to submit once. Google rechecks the sitemap on its own schedule. Google retired its old sitemap ping address in 2023, so pinging Google is no longer possible or needed.

Submit to Bing too

In Bing Webmaster Tools, open Sitemaps and submit the same address, or import your site straight from Search Console. For instant updates on Bing and other engines, add IndexNow.

Add it to robots.txt

Listing the sitemap in robots.txt helps every crawler find it:

Sitemap: https://example.com/sitemap_index.xml

Common sitemap errors in Search Console and how to fix them

Error or statusWhat it meansHow to fix it
Couldn’t fetchGoogle could not load the fileOpen the URL in a private window. Check security plugins, firewalls and caching are not blocking it.
Sitemap is HTMLGoogle got a web page, often a 404 page, instead of XMLCheck the exact address, then resave permalinks in Settings, Permalinks.
Submitted URL marked noindexThe sitemap lists a page that tells Google not to index itRemove it from the sitemap or remove the noindex, whichever is correct.
Submitted URL has redirectA listed URL redirects elsewhereList only the final URL.
Discovered, currently not indexedGoogle knows the page but has not indexed it yetImprove the content and add internal links. A sitemap alone will not fix this.
Two sitemaps submittedCore and plugin sitemaps both in Search ConsoleRemove the old one and keep the plugin sitemap index.

Most sitemap problems are really crawling, caching or quality problems.

XML sitemaps in SEO Rank Genius

In Indexing and Sitemaps, then XML Sitemap, switch the sitemap on, choose whether to use a sitemap index, set how many links go in each file, and pick which content types are included.

SEO Rank Genius XML Sitemap settings with sitemap index, links per sitemap and included content types
The XML Sitemap tab: structure, links per file and the content types to include.

Images are included automatically, and specialty sitemaps for Google News, video and multilingual sites are opt in. You can preview each one before switching it on.

SEO Rank Genius specialty sitemaps for Google News, video and multilingual sites, each with a preview button
News, video and multilingual sitemaps are off until you need them.

An optional HTML sitemap page for visitors can be grouped by pillar and cluster. Sitemaps are included in every plan; see current pricing.

Watch: XML sitemaps in SEO Rank Genius starts at 28:45

Keep reading

Sitemaps help Google find pages; IndexNow tells Bing the moment they change. For the full setup in order, follow the WordPress SEO checklist.

Clean sitemaps without the busywork

SEO Rank Genius builds a sitemap index with images, drops noindexed pages automatically and adds news and video sitemaps when you need them.

Frequently asked questions

Does WordPress have a sitemap by default?
Yes. Since version 5.5, WordPress creates a basic sitemap at yoursite.com/wp-sitemap.xml. SEO plugins usually replace it with a more complete sitemap index.
How do I submit my sitemap to Google?
In Google Search Console, open Indexing, then Sitemaps, enter the sitemap address such as sitemap_index.xml, and click Submit. You only need to do it once.
Do I need an XML sitemap generator for WordPress?
No. WordPress and every major SEO plugin generate the sitemap automatically and keep it updated. Online generators create a static file that goes out of date.
How often should I resubmit my sitemap?
You do not need to. Google rechecks submitted sitemaps on its own. Just keep lastmod dates accurate.
Does a sitemap help SEO?
It helps discovery, especially for new or large sites and pages with few links. It does not improve rankings by itself or guarantee indexing.
Why does Google say couldn’t fetch for my sitemap?
Usually a security plugin, firewall or cache is blocking Googlebot, or the address is wrong. Open the sitemap in a private window and check it loads as XML.
MI
Muhammad IrfanFounder and developer of SEO Rank Genius

I build SEO Rank Genius, a WordPress SEO plugin with XML, HTML, image, news and video sitemaps. The rules below come from Google’s sitemap documentation, checked on 27 September 2026.