How to Create a Sitemap in WordPress (With or Without a Plugin)
Your WordPress site may already have a sitemap. Here is where to find it, when to use a plugin, and how to create one without.

Contents
- Step 1: Check if your WordPress site already has a sitemap
- Option 1: The built-in WordPress sitemap (no plugin)
- Option 2: An SEO plugin sitemap
- Option 3: Create a sitemap without a plugin, using a generator
- Turning off the WordPress core sitemap
- Step 2: Submit your WordPress sitemap to Google
- Step 3: Check that it works
- Common WordPress sitemap problems
Good news: if your website runs on WordPress, you probably already have an XML sitemap. WordPress has created one automatically since version 5.5, and every major SEO plugin adds its own. This guide shows you where your WordPress sitemap is, when a plugin is worth using, how to create a sitemap without a plugin, and how to submit it to Google.
Step 1: Check if your WordPress site already has a sitemap
Open these addresses in your browser, replacing example.com with your domain. The first one that loads a list of links is your sitemap:
| Address | Created by |
|---|---|
/wp-sitemap.xml | WordPress core (no plugin) |
/sitemap_index.xml | Yoast SEO or Rank Math |
/sitemap.xml | All in One SEO and several other plugins |
Not sure which one is active? Enter your domain in our sitemap finder. It checks robots.txt and all the common addresses and lists every sitemap it finds.
Tip: If none of them load, go to Settings → Reading and make sure Discourage search engines from indexing this site is not ticked. When it is ticked, WordPress switches its sitemap off.
Option 1: The built-in WordPress sitemap (no plugin)
The core sitemap at /wp-sitemap.xml is a sitemap index. It links to smaller sitemaps for posts, pages, categories, tags and author archives, and it updates automatically whenever you publish.
Good for: small blogs and business sites that don’t want another plugin.
Limitations:
- No
lastmoddates in the core version, so Google gets less help knowing what changed. - No image sitemap.
- It may list pages you don’t want indexed — such as author or tag archives — unless you remove them with code.
Option 2: An SEO plugin sitemap
Yoast SEO, Rank Math and All in One SEO all create a more complete sitemap and switch the core one off automatically. Typical extras:
lastmoddates for every post and page.- Images listed with each post.
- Pages set to
noindexare left out automatically. - Simple switches to exclude post types, taxonomies or single posts.
To enable it in Yoast, go to Yoast SEO → Settings → Site features and turn on XML sitemaps. In Rank Math, enable the Sitemap module in the dashboard. Only use one sitemap source at a time — two plugins creating sitemaps leads to duplicates and confusion.
Option 3: Create a sitemap without a plugin, using a generator
Sometimes you can’t or don’t want to rely on WordPress itself — a locked-down hosting plan, a site being migrated, or a mix of WordPress and non-WordPress pages. In that case:
- Crawl your site. Enter your homepage in our free XML sitemap generator. It follows your links like a search engine and leaves out redirects,
noindexpages and non-canonical URLs. Tick Split by type if you want separate files for posts, pages, categories and tags. - Download the file (
sitemap.xml, or a ZIP with an index and several files). - Upload it to your site’s root folder — the same folder that contains
wp-config.php— using your host’s File Manager or an FTP app. - Open it in your browser at
https://example.com/sitemap.xmlto make sure it loads.
A static file doesn’t update itself, so re-generate it after you publish new content. For an active blog, a plugin or the core sitemap is easier to maintain; the generator is ideal for one-off audits, migrations and sites where plugins aren’t an option.
Turning off the WordPress core sitemap
If you upload your own file to /sitemap.xml and want to stop WordPress from creating /wp-sitemap.xml as well, add this line to your theme’s functions.php or a small custom plugin:
add_filter( 'wp_sitemaps_enabled', '__return_false' );
You don’t need this if you use an SEO plugin — it does the same automatically.
Step 2: Submit your WordPress sitemap to Google
- Open Google Search Console and choose your property.
- Go to Indexing → Sitemaps.
- Enter the sitemap address (for example
sitemap_index.xml) and click Submit.
Our step-by-step guide to submitting a sitemap to Google Search Console covers each screen in detail, including what the status messages mean.
Step 3: Check that it works
Run your sitemap through our sitemap checker. It validates the XML, checks every URL’s format, and can test a sample of pages for redirects, 404 errors and noindex tags. WordPress sitemaps often contain a few surprises — old attachment pages, test posts or redirected URLs after a permalink change.
Common WordPress sitemap problems
- 404 on the sitemap URL: go to Settings → Permalinks and click Save Changes without changing anything. This refreshes WordPress’s address rules.
- Sitemap shows a blank page or HTML: a caching or security plugin may be interfering. Clear the cache and exclude the sitemap from caching.
- Search Console says “Couldn’t fetch”: see our guide to fixing “Couldn’t fetch”.
Frequently asked questions
Quick answers to the questions we hear most. Still have a question? Ask us through our contact page.
Does WordPress create a sitemap automatically?
Yes. Since version 5.5 WordPress creates one at /wp-sitemap.xml, unless an SEO plugin replaces it.
Where is the Yoast or Rank Math sitemap?
Both use /sitemap_index.xml by default.
Can I create a WordPress sitemap without a plugin?
Yes. Use the built-in sitemap, or generate a file with a free sitemap generator and upload it to your root folder.
Why does my WordPress sitemap show a 404?
Re-save your permalinks under Settings → Permalinks, and make sure the “Discourage search engines” option is off.


