WordPress sitemap: how to find it, fix it and submit it to Google
Where your WordPress sitemap lives, how to check it is working, how to submit it to Google and Bing, and the common problems that stop pages being found.
In this article
- What is a WordPress sitemap?
- Where is my WordPress sitemap?
- How do I check my WordPress sitemap is working?
- How to submit your WordPress sitemap to Google
- Do I need a sitemap plugin?
- What does Google actually read in a sitemap?
- Common WordPress sitemap problems and fixes
- How to remove a page from the WordPress sitemap
- Sitemaps and AI search
- WordPress sitemap checklist
- Frequently asked questions
- Sources
Every WordPress site has a WordPress sitemap built in: open yoursite.com/wp-sitemap.xml and you will usually see it. If you use Yoast SEO, Rank Math or another SEO plugin, that plugin replaces it with its own, normally at yoursite.com/sitemap_index.xml. Either way, you don’t need to build one by hand. What you do need to do is check it lists the right pages, add it to robots.txt, and submit it once to Google Search Console and Bing Webmaster Tools.
Who this is for: WordPress site owners who want Google to find every page and are not sure whether their sitemap is working. Facts checked on 30 November 2026 against Google’s and WordPress’s own documentation.
Key takeaways
- WordPress has made its own XML sitemap since version 5.5, at /wp-sitemap.xml.
- SEO plugins such as Yoast SEO and Rank Math switch the built in sitemap off and use their own at /sitemap_index.xml.
- One sitemap can hold up to 50,000 URLs or 50MB, and Google ignores the priority and changefreq tags.
- A sitemap is a hint, not a promise: Google still decides what to crawl and index.
- The most common problems are two sitemaps at once, noindex pages listed, and a sitemap that is never submitted.
What is a WordPress sitemap?
A sitemap is a file that lists the pages on your site that you want search engines to find, with the date each one last changed. Search engines read it to discover pages they might otherwise miss, such as new posts that nothing links to yet.
There are two kinds people mix up:
| Type | Who it is for | Example address | Do you need it? |
|---|---|---|---|
| XML sitemap | Search engines | /wp-sitemap.xml | Yes |
| HTML sitemap | People | /sitemap/ (a normal page) | Optional |
This guide is about the XML sitemap, the one that matters for Google and Bing. An HTML sitemap is just a page of links. It can help visitors on large sites, but search engines don’t need it.
In short: the XML sitemap is a list of your pages written for search engines, and WordPress makes it for you.
Where is my WordPress sitemap?
Try these three addresses in order. The first one that loads is your sitemap.
| Your setup | Sitemap address |
|---|---|
| Yoast SEO | yoursite.com/sitemap_index.xml |
| Rank Math | yoursite.com/sitemap_index.xml |
| All in One SEO | yoursite.com/sitemap.xml |
| SEOPress | yoursite.com/sitemaps.xml |
| No SEO plugin | yoursite.com/wp-sitemap.xml |
If you are not sure which one applies, open yoursite.com/robots.txt. WordPress and most SEO plugins add a line that starts with Sitemap: and gives the exact address.
The built in WordPress sitemap was added in WordPress 5.5. The main file, /wp-sitemap.xml, is an index: it links to smaller sitemaps for posts, pages, categories, tags and authors. Each of those holds up to 2,000 entries before WordPress starts a second one.
When you install Yoast SEO, it switches the core sitemap off so that search engines only see one. Yoast announced this when WordPress 5.5 came out, and Rank Math and the other big SEO plugins do the same.
In short: check robots.txt for the Sitemap: line; it tells you exactly where your sitemap is.
How do I check my WordPress sitemap is working?
Open the sitemap in your browser and click into each part. A healthy WordPress sitemap passes all of these checks:
- It loads. The address opens and shows a list, not a “page not found” error or a blank page.
- It lists your real content. Your published posts and pages are there, and drafts, private pages and test pages are not.
- Every address works. Pick a few links at random and open them. Each should load the page, not redirect somewhere else.
- No hidden pages. Pages you have set to noindex should not appear. Listing a page in the sitemap while telling Google not to index it sends mixed signals.
- The dates make sense. The last modified date should change when you edit a page, not every time anyone visits.
- There is only one. If both /wp-sitemap.xml and /sitemap_index.xml load with your pages in them, you have two sitemaps running.
Doing this by hand is fine on a small site. On a bigger one, a checking tool saves time. Our free Ora Connect plugin checks whether your site has a sitemap, along with titles, broken links and missing pages, and gives each problem a link to the page to fix.
In short: open it, click through it, and make sure it lists only live pages you want found.
How to submit your WordPress sitemap to Google
You only need to do this once. After that, Google comes back to the sitemap by itself.
- Open Google Search Console at search.google.com/search-console and add your site if you haven’t already. You will need to verify that you own it.
- Go to Sitemaps in the menu on the left (under Indexing).
- Type the sitemap address after your domain, for example
wp-sitemap.xmlorsitemap_index.xml, and press Submit. - Check the status. After a little while it should say Success and show how many pages it found.
Google’s sitemap guide also lists a second way that needs no account: add a Sitemap: line to robots.txt. WordPress already does this for its own sitemap, and SEO plugins do it for theirs. It is still worth submitting in Search Console, because the Sitemaps report shows you when Google last read the file and any errors it found.
Submit it to Bing too
Bing powers Bing search, DuckDuckGo results in part, and some AI search tools, so it is worth the two minutes. Sign in to Bing Webmaster Tools, add your site (you can import it straight from Google Search Console), open Sitemaps and submit the same address.
In short: submit the sitemap address once in Google Search Console and once in Bing Webmaster Tools, then leave it.
Do I need a sitemap plugin?
Usually not. Here is how the options compare:
| Option | Cost | Images in sitemap | Control over what’s listed | Best for |
|---|---|---|---|---|
| WordPress core sitemap | Free, built in | No | Code only | Small sites with no SEO plugin |
| Yoast SEO or Rank Math sitemap | Free | Yes | Settings screen | Most sites |
| Dedicated sitemap plugin | Free or paid | Varies | Detailed | Large or unusual sites |
If you already use an SEO plugin, its sitemap is the one to keep. If you don’t, the core sitemap is perfectly good for a small business site or blog. The main thing it lacks is a settings screen: you can’t untick a post type or exclude a page without a few lines of code or a small helper plugin.
What you should never do is run two sitemap tools at once. Pick one, and make sure the other is switched off.
In short: keep the sitemap your SEO plugin makes, or the core one if you have no SEO plugin. Don’t add a third.
What does Google actually read in a sitemap?
Sitemaps can contain several tags, but Google only pays attention to some of them. According to Google’s documentation:
| Tag or rule | What Google does with it |
|---|---|
<loc> (the address) | Required. Must be a full address starting with https:// |
<lastmod> (last changed date) | Used, but only if it is consistently accurate |
<priority> | Ignored |
<changefreq> | Ignored |
| Size limit | 50,000 URLs or 50MB (uncompressed) per sitemap file |
| Encoding | Must be UTF-8 |
Two things follow from this. First, setting every page to priority 1.0 does nothing, so don’t spend time on it. Second, the last modified date matters, but only if it is honest. If a plugin updates the date on every page each day, Google learns to ignore it.
Google is also clear that a sitemap is a hint. It helps Google find your pages, but it does not guarantee that they will be crawled or appear in search results. Pages still need to be useful, reachable through links, and not blocked.
In short: Google reads the address and an honest last modified date. Priority and change frequency are ignored.
Common WordPress sitemap problems and fixes
| Problem | What you see | Fix |
|---|---|---|
| Two sitemaps | Both /wp-sitemap.xml and /sitemap_index.xml list your pages | Keep one. If an SEO plugin is active, it should switch the core one off; if not, check for a second sitemap plugin |
| Sitemap shows “page not found” | 404 when you open it | Go to Settings, Permalinks and press Save Changes to refresh the rewrite rules |
| Blank page or XML error | Browser shows an error about the first line | Often a plugin or theme printing a blank line before the file. Switch plugins off one by one to find it |
| Noindex pages listed | Search Console says “Submitted URL marked noindex” | Remove the page from the sitemap, or remove the noindex if you want it found |
| Redirecting URLs listed | Search Console says “Page with redirect” | List the final address, not the old one |
| Old or cached version | New posts missing from the sitemap | Clear your caching plugin and your CDN cache for the sitemap address |
| Sitemap blocked | Search Console says “Couldn’t fetch” | Check robots.txt doesn’t block it, and that a security plugin or firewall isn’t blocking Googlebot |
| “Search engine visibility” ticked | The core sitemap disappears | Settings, Reading: untick “Discourage search engines from indexing this site” |
That last one catches a lot of people. When the “Discourage search engines” box is ticked, WordPress turns off its own sitemap entirely, because you’ve told it you don’t want to be found. It is often left ticked after a site moves from a staging copy to the live domain.
In short: most sitemap problems come from two sitemaps, cached files, or the “discourage search engines” box.
How to remove a page from the WordPress sitemap
The cleanest way is to mark the page noindex in your SEO plugin. Yoast SEO, Rank Math and the others remove noindexed pages from their sitemap automatically.
With the core sitemap and no SEO plugin, you can exclude pages with a short code snippet, for example in a small custom plugin:
add_filter( 'wp_sitemaps_posts_query_args', function ( $args, $post_type ) {
if ( 'page' === $post_type ) {
$args['post__not_in'] = array( 12, 34 ); // IDs of pages to leave out
}
return $args;
}, 10, 2 );
To stop the core sitemap listing a whole type of content, such as author archives, use the wp_sitemaps_add_provider filter and return false for that provider. Only do this if you understand what you are removing: author archives on a single author blog are usually thin, but category pages may be worth keeping.
In short: use your SEO plugin’s noindex setting, or a small filter if you rely on the core sitemap.
Sitemaps and AI search
AI search tools such as ChatGPT search and Perplexity mostly find pages through their own crawlers and through search engine indexes like Bing’s. A clean sitemap helps those indexes stay current, so it helps indirectly. There is also a newer file, llms.txt, that some sites publish as a short guide for AI tools. It is not a replacement for a sitemap, and the evidence that AI tools read it is thin, but it is free to add. We explain it in What is llms.txt? And how to add one to WordPress.
In short: your sitemap feeds the search indexes that AI tools rely on. llms.txt is an optional extra, not a substitute.
WordPress sitemap checklist
- Find your sitemap through the
Sitemap:line in yoursite.com/robots.txt. - Make sure only one sitemap is running.
- Click through it: only live pages you want found, no drafts, noindex pages or redirects.
- Untick “Discourage search engines” under Settings, Reading on a live site.
- Submit it once in Google Search Console and Bing Webmaster Tools.
- Check the Sitemaps report every month or two for errors.
Frequently asked questions
Does WordPress create a sitemap automatically?
Yes. Since WordPress 5.5, every site gets an XML sitemap at /wp-sitemap.xml, unless an SEO plugin replaces it or the “Discourage search engines” box is ticked.
Why does my sitemap_index.xml show a 404 error?
That address only exists if an SEO plugin such as Yoast SEO or Rank Math makes it. Without one, use /wp-sitemap.xml. If your SEO plugin is active and it still shows a 404, go to Settings, Permalinks and press Save Changes.
How often should I resubmit my sitemap to Google?
You don’t need to. Submit it once and Google returns to it by itself. Resubmit only if the sitemap address changes, for example after switching SEO plugins.
How many URLs can a sitemap have?
Up to 50,000 URLs or 50MB uncompressed per file. Larger sites use a sitemap index that links to several sitemaps, which is what WordPress and SEO plugins do automatically.
Does a sitemap help my Google rankings?
Not directly. It helps Google find and recrawl your pages, which matters most for new sites, large sites and pages with few links pointing to them. Rankings still depend on the pages themselves.
Should images be in my sitemap?
It can help pages with important images appear in Google Images. Yoast SEO and Rank Math add images to their sitemaps; the core WordPress sitemap does not.
Can I have more than one sitemap?
You can submit several sitemaps or a sitemap index, and Google supports that. What causes trouble is two different plugins making competing sitemaps of the same pages.
Sources
- Build and submit a sitemap, Google Search Central
- New XML Sitemaps Functionality in WordPress 5.5, Make WordPress Core
- WordPress 5.5 is here! 5 things you need to know, Yoast


