Skip to content
Enjoy 20% off for 12 months on all plans. Use promo code: HYPERGROWTHClaim it

Yoast Sitemap: Find It, Fix It, Submit It Correctly

By Toy Wen Da, Co-Founder · Updated · 6 min read · scored 93/100

A Yoast sitemap is the XML file Yoast SEO builds automatically at yoursite.com/sitemap_index.xml. It lists the indexable content on your WordPress site and tells search engines when each page last changed. Check that XML sitemaps are switched on in the Yoast settings, then open that URL in your browser to see what Google sees.

Diagram of a sitemap index pointing to smaller sitemaps for each content type

Why a sitemap is worth having

Without one, Google has to find your pages by following links. Most small business sites have gaps in their internal linking, so some useful pages can go unfound for a long time. A sitemap hands Google the list directly, which helps new content get discovered sooner and lets you decide which pages belong in it. Keeping junk URLs out also means Google spends its crawl budget on pages you care about.

Before you open Yoast's own screens, it helps to see your URLs the way a crawler does. The free XML Sitemap Generator crawls your site and produces a downloadable sitemap on the spot. Comparing that against what Yoast lists is a quick way to spot pages that are missing or shouldn't be there.

What a Yoast sitemap contains

A Yoast sitemap isn't one flat file. It's an index page that points to separate sub-sitemaps: one for posts, one for pages, and one for each public taxonomy such as categories or tags. Each entry lists a URL and its last-modified date, and sometimes an image reference. Search engines read the index and then crawl each sub-sitemap in turn.

Why the split matters

Smaller files are quick to fetch and easy for Google to recrawl selectively. When you publish a new blog post, only the posts sub-sitemap needs refreshing, so Google doesn't have to re-read your whole URL list.

Where to find and enable your Yoast sitemap

Diagram of the steps for finding and enabling the sitemap in Yoast settings

Here's the path, as the plugin's menus are labeled today:

  1. Log into your WordPress dashboard.
  2. In the left sidebar, click SEO, then Settings.
  3. Click the Site features tab along the top.
  4. Scroll to the APIs section and find XML sitemaps.
  5. Toggle it on. A checkmark confirms it's active.
  6. Click Save changes at the bottom of the page.
  7. Click "View the XML sitemap" next to the toggle to open it in a new tab.

That link opens sitemap_index.xml. If you'd rather skip the settings, paste your homepage URL plus /sitemap_index.xml into the address bar.

Choosing what appears in the sitemap

Go back to SEO > Settings and open the Content types tab. Each post type and taxonomy has a "Show in search results" toggle, and turning it off removes that content type from both search results and the sitemap. Yoast also leaves out anything marked noindex, password-protected content, drafts and, on single-author sites, author archive pages.

For a small business site, the aim is a short, clean list: the pages you want people to find from search and nothing else. Tag archives, thin author pages and similar low-value URLs are the usual candidates to switch off.

Yoast sitemap vs. WordPress's built-in sitemap

Diagram comparing the Yoast sitemap with the WordPress core sitemap

Every WordPress install has shipped with a basic sitemap since version 5.5 landed in 2020. Installing Yoast disables that core sitemap and replaces it, which is the behavior you want.

Feature WordPress Core Sitemap Yoast SEO Sitemap
Respects "noindex" tags No, noindexed pages can still appear Yes, automatically filtered out
File organization Single flat list Index file with separate sitemaps per content type
Large-site handling Limited Splits into chunks of 1,000 URLs per file
Updates on content changes Basic, slower to reflect edits Automatic, refreshes as you publish or edit
Customization Minimal Toggle any content type on or off

If you ever deactivate Yoast SEO, WordPress's core sitemap takes over again automatically. Remember that before you swap SEO plugins.

Submitting your Yoast sitemap to Google Search Console

Enabling the sitemap only helps if Google knows it exists.

  1. Go to Google Search Console and select your verified property.
  2. In the left sidebar, click Sitemaps under the Indexing section.
  3. In the "Add a new sitemap" box, type sitemap_index.xml.
  4. Click Submit.
  5. Refresh after a few minutes and confirm the status reads Success.

If the status shows "Couldn't fetch" or "Has errors", check that your site is publicly accessible and that XML sitemaps are still toggled on in Yoast. Then resubmit after waiting roughly 24 hours, because Google's crawler doesn't always recheck instantly.

Checking that it's working

Success in the Sitemaps report only means Google read the file. For the real picture, open the Pages report under Indexing and see which of your URLs are indexed and which are excluded. A healthy sitemap shows a last-read date that keeps moving forward and a discovered-URL count that matches the pages you meant to include. If the count is far higher than expected, junk URLs have crept in. If it's lower, a content type is probably switched off.

Check back after any big change, such as a redesign, a batch of new posts or a settings tweak, and otherwise now and then.

When WordPress's own tools are enough, and when they aren't

For a single bad URL, such as one page stuck on "Couldn't fetch" or missing a last-modified date, the built-in sitemap view and Search Console's URL Inspection tool are usually all you need. Enable the sitemap, resubmit it and move on.

The free, built-in route runs out in a few situations:

  • Recurring errors across many URLs usually point to a server, caching or redirect problem that the sitemap can't fix. A stale cache can also explain why new posts don't show up in the sitemap right away.
  • When you audit a site you don't control, like a client's or a competitor's, you can't log into WordPress at all. A standalone sitemap checker lets you fetch and inspect any public XML sitemap without plugin access.
  • Migrations and replatforming call for comparing an old sitemap with a new one to confirm nothing got dropped.
  • Custom or headless builds without Yoast leave you working from a raw wp-sitemap.xml file. The structure and defaults differ, and this guide to reading and fixing wp-sitemap.xml walks through them.

Common mistakes to avoid

  • Running two sitemap plugins at once. If Yoast and another SEO plugin both generate a sitemap, you get conflicting files and confused crawlers.
  • Submitting the wrong filename. It's sitemap_index.xml, and submitting sitemap.xml in Search Console will fail.
  • Leaving tag or author archives on when they add little unique content, which bloats the sitemap with thin pages.
  • Finding noindex pages in the sitemap. Yoast filters these out, so if one shows up, check whether another plugin or a theme setting is overriding it.
  • Assuming "Success" means every page is indexed. The Sitemaps report only confirms Google read the file.
  • Forgetting to resubmit after a site migration or domain change, which leaves Search Console pointed at a sitemap that no longer matches your URLs.

Yoast sitemap FAQs

Where exactly is my Yoast sitemap located?

At yoursite.com/sitemap_index.xml. This index links to separate sitemaps for posts, pages and each taxonomy you've enabled.

Why is my sitemap showing "Couldn't fetch" in Search Console?

This usually means Google's crawler couldn't reach the file. Check that XML sitemaps are enabled in Yoast, that your hosting isn't blocking crawlers and that the site is online, then resubmit after about 24 hours.

Does Yoast automatically update the sitemap when I publish new content?

Yes. Yoast refreshes the affected sitemap files whenever you publish, edit or delete content, so you never need to regenerate them by hand.

Can I remove certain content types from my Yoast sitemap?

Yes. Under SEO > Settings > Content types, toggle "Show in search results" off for any post type or taxonomy you don't want included.

What's the difference between a Yoast SEO sitemap and robots.txt?

The sitemap lists pages you want crawled and indexed, while robots.txt tells crawlers which paths to avoid. Yoast manages both, but they serve opposite purposes.

For deeper technical detail on sitemap standards, the sitemaps overview from Google Search Central is a solid reference.

Check yours today

Open sitemap_index.xml on your own site and confirm it matches what you expect, with no stray noindex pages and no missing sections. A correctly configured Yoast sitemap, submitted to Search Console, is one of the fastest wins available to a WordPress site. To see how the rest of your technical setup stacks up alongside it, talk to the team.

See what this looks like on your own siteEnter your website. You get the searches your buyers make and the page that should answer each one.

Resources / References

  1. sitemaps overview from Google Search Central

Sources

About the author

SearchBlueprint researched, wrote and scored this article with the content pipeline our customers run on their own sites. The score in the byline is what our content engine gave this page before it published. Nothing here is reviewed by hand, which is the point: it is the product's output, published where anyone can check it.

All WordPress guides