WordPress Sitemap: How to Create and Submit One (2026 Guide)

TL;DR: A WordPress sitemap is an XML file that lists every important URL on your site so search engines can find and index your content faster. WordPress 5.5 and later includes a built-in sitemap at /wp-sitemap.xml, and SEO plugins like Yoast SEO and Rank Math offer more powerful options. Submit your sitemap to Google Search Console to accelerate indexing.

Last Updated: March 2026

A WordPress sitemap is one of the most important yet overlooked tools for improving your site’s visibility in search engines. Without a properly configured sitemap, Google and Bing may miss new pages, skip recently updated posts, or fail to index your media files entirely. In this guide, you will learn exactly what a WordPress sitemap is, how the built-in sitemap works, how to use Yoast SEO and Rank Math to generate richer sitemaps, how to create one manually, and how to submit it to Google Search Console in 2026. We also cover the most common sitemap issues and how to fix them fast.

WordPress sitemap overview showing XML sitemap structure and Google Search Console submission

What Is a WordPress Sitemap and Why Does It Matter?

A sitemap is a structured XML file that lists the URLs on your website along with optional metadata such as when each page was last modified, how frequently it changes, and its priority relative to other pages. Search engine bots called crawlers read this file to discover and understand your site structure without relying solely on following links from page to page.

For WordPress sites running on WordPress.org software, sitemaps matter most in three scenarios: when you launch a new site and want Google to index it quickly, when you publish content frequently and want new posts indexed within hours rather than days, and when you have a large site where some deep pages might never get crawled naturally.

Google officially recommends submitting a sitemap for any site with more than a few hundred pages, any site with rich media content, or any new site that has not yet acquired many backlinks. The sitemap does not guarantee indexing, but it does tell Google which pages exist and signals which ones matter most.

The Default WordPress Sitemap at /wp-sitemap.xml (WordPress 6.7)

Since WordPress 5.5, every WordPress installation automatically generates a sitemap index at yoursite.com/wp-sitemap.xml. As of WordPress 6.7, this built-in sitemap is still active on all fresh installations. You do not need to install any plugin to use it.

The default WordPress sitemap is actually a sitemap index, meaning it links to several individual sitemaps organized by content type. A typical sitemap index includes separate sitemaps for posts, pages, categories, tags, authors, and custom post types. Each individual sitemap file can hold up to 2,000 URLs.

To view your sitemap right now, simply visit https://yoursite.com/wp-sitemap.xml in a browser. You will see an XML document with links to sub-sitemaps like these:

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://yoursite.com/wp-sitemap-posts-post-1.xml</loc>
  </sitemap>
  <sitemap>
    <loc>https://yoursite.com/wp-sitemap-posts-page-1.xml</loc>
  </sitemap>
  <sitemap>
    <loc>https://yoursite.com/wp-sitemap-taxonomies-category-1.xml</loc>
  </sitemap>
</sitemapindex>

The built-in sitemap works for most small sites but has limitations: it does not include image sitemaps, it does not let you set priority or change frequency values, and it includes taxonomy and author pages that you may prefer to exclude. For more control, an SEO plugin is the better choice.

If you already use Yoast SEO or Rank Math, those plugins automatically disable the default WordPress sitemap and replace it with their own, more feature-rich version. This prevents duplicate sitemaps from appearing.

Yoast SEO Sitemap: Features and Setup in 2026

Yoast SEO is one of the most widely installed WordPress plugins, and its sitemap feature is among the most reliable options available. When you install and activate Yoast SEO (version 22 or later), it automatically generates an XML sitemap at yoursite.com/sitemap_index.xml.

To configure Yoast SEO sitemaps, navigate to Yoast SEO > Settings > Site features and confirm that XML sitemaps are toggled on. You can also control which post types and taxonomies appear in the sitemap by going to Yoast SEO > Settings and adjusting the visibility of each content type.

Key Yoast sitemap features include image sitemaps, news sitemaps (with the Yoast News add-on), video sitemaps (with Yoast Video SEO), and automatic pinging of Google when you publish new content. Yoast also respects the noindex setting, so any page you mark as “noindex” in Yoast will be excluded from the sitemap automatically. This is the correct behavior and avoids sending Google to pages you do not want indexed.

Rank Math Sitemap: A Powerful Alternative for 2026

Rank Math is a strong Yoast alternative that also generates a comprehensive WordPress sitemap. When active, its sitemap lives at yoursite.com/sitemap_index.xml, the same path as Yoast. The two plugins conflict, so use only one at a time.

To enable the Rank Math sitemap, go to Rank Math > Dashboard and make sure the Sitemap module is active. Then visit Rank Math > Sitemap Settings for detailed control. Rank Math offers a few features that Yoast reserves for its premium tier, including HTML sitemaps, sitemap for WooCommerce products, and fine-grained control over including or excluding individual posts and pages from the sitemap without setting them noindex.

Feature Default WordPress Sitemap Yoast SEO (Free) Rank Math (Free)
Auto-generated Yes Yes Yes
Image sitemap No Yes Yes
Exclude by post type No Yes Yes
Exclude individual URLs No No (free) Yes
HTML sitemap No No (free) Yes
News sitemap No Add-on only Add-on only
Priority/frequency control No No Yes
Best for Simple sites, no plugins Most WordPress sites Feature-heavy sites

How to Create a Manual XML Sitemap for WordPress

Most WordPress users should rely on the built-in sitemap or a plugin. However, there are cases where you might want to create a manual sitemap: for a static landing page site, for a very specific subset of URLs, or when you cannot install plugins on your host.

A basic XML sitemap follows the Sitemaps protocol (version 0.9) and looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://yoursite.com/</loc>
    <lastmod>2026-03-01</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://yoursite.com/about/</loc>
    <lastmod>2026-01-15</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
</urlset>

To deploy a manual sitemap on WordPress, save the file as sitemap.xml and upload it to the root of your WordPress installation, typically at /public_html/sitemap.xml via SFTP or your host’s file manager. Once uploaded, it will be accessible at yoursite.com/sitemap.xml. Note that a manual sitemap does not update automatically; you must re-upload it every time your content changes. For anything beyond a static brochure site, an auto-generated sitemap from WordPress or an SEO plugin is far more practical.

How to Submit Your WordPress Sitemap to Google Search Console in 2026

Creating a sitemap is only half the job. Submitting it to Google Search Console tells Google where to find it and triggers faster crawling. Here is the step-by-step process:

  1. Log in to Google Search Console at search.google.com/search-console and select your property.
  2. In the left menu, click Sitemaps under the Index section.
  3. In the “Add a new sitemap” field, enter your sitemap URL. For Yoast or Rank Math users, type sitemap_index.xml. For the default WordPress sitemap, type wp-sitemap.xml. For a manual sitemap, type sitemap.xml.
  4. Click Submit. Google will immediately begin reading the file.
  5. Refresh the page after a few minutes. You will see the sitemap listed with a status of “Success” and the number of discovered URLs.

Google Search Console also shows you the number of submitted URLs versus indexed URLs. If you submit 150 URLs but only 90 are indexed, that gap is normal and does not require alarm. Google selectively indexes pages based on quality and relevance signals. However, if the gap is very large or grows over time, it may indicate thin content, duplicate pages, or crawl budget issues on your site. A fast, reliable host helps Google crawl your site more efficiently. You can learn more about our managed WordPress hosting packages that are optimized for crawlability and speed.

You should also consider submitting your sitemap to Bing Webmaster Tools, which covers Bing and Yahoo search traffic. The process is nearly identical: log in, navigate to Sitemaps, and paste your sitemap URL.

Google Search Console sitemap submission screen showing sitemap URL input and success status

WordPress Sitemap and Your robots.txt File

Your WordPress sitemap works closely with your robots.txt file. It is best practice to declare your sitemap URL inside robots.txt so that any crawler visiting your site can find it automatically, even without a Search Console submission. You can add this line to your robots.txt file:

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

Most SEO plugins including Yoast SEO and Rank Math add this line automatically when you enable their sitemap feature. To verify, read our guide on where robots.txt is located in WordPress and how to view or edit it. You can also learn more about your overall WordPress SEO strategy to make sure sitemaps are part of a broader optimization plan.

Troubleshooting Common WordPress Sitemap Issues in 2026

Even on a well-configured site, sitemap problems do arise. Here are the most common issues and how to resolve each one quickly.

Sitemap Returns a 404 Error

If your sitemap URL returns a 404 error, the most likely cause is a permalink issue. Go to Settings > Permalinks in your WordPress dashboard and click Save Changes without changing anything. This regenerates the rewrite rules that power dynamic URLs including the sitemap. If the problem persists, check that your .htaccess file contains the standard WordPress rewrite block. On Nginx servers, your server block configuration must include WordPress rewrite rules, as Nginx does not use .htaccess.

Sitemap Is Empty or Missing Pages

If your sitemap loads but is missing posts or pages, check two things. First, make sure the missing content is set to “index” in your SEO plugin. In Yoast SEO, go to Yoast SEO > Settings and check each content type under Search appearance. In Rank Math, go to Rank Math > Titles and Meta. Second, make sure the individual post or page is not set to noindex. In Yoast SEO, open the post, scroll to the Yoast meta box, click the Advanced tab, and confirm “Allow search engines to show this post in search results” is set to yes.

Google Shows Fewer Indexed URLs Than Submitted

This is normal behavior. Google does not index every URL you submit. It evaluates each URL for quality. Common reasons for non-indexing include thin content, duplicate content, slow page speed, blocked resources via robots.txt, or a crawl budget constraint on large sites. Improve content quality on low-performing pages and ensure your server responds quickly (under 200ms TTFB is a good benchmark on managed WordPress hosting).

Duplicate Sitemaps (Plugin Conflict)

If you have both Yoast SEO and Rank Math active, or if you have a caching plugin that has its own sitemap feature, you may end up with multiple competing sitemaps. This does not cause major harm, but it creates confusion. Standardize on one sitemap source. Deactivate the sitemap feature in all but one plugin. Most SEO plugins have a sitemap toggle in their settings.

Sitemap Not Updating After New Posts

If your sitemap is cached and not refreshing, a caching plugin may be serving a stale version. In WP Super Cache, W3 Total Cache, or WP Rocket, check the settings and exclude your sitemap URL from caching. Most caching plugins have an exclusion list under their advanced settings. Yoast SEO generates sitemaps dynamically and most modern caching setups exclude XML files automatically, but it is worth confirming.

Sitemap Includes Noindex Pages

Sending Google URLs marked as noindex is a contradiction: you are simultaneously telling it to index the URL (via sitemap) and not to index it (via the meta tag). This does not break anything catastrophically, but it wastes crawl budget. In Yoast SEO, noindex pages are excluded from the sitemap automatically. In the default WordPress sitemap, there is no such filter, which is one reason the plugin-generated sitemaps are preferable.

Sitemap Blocked by robots.txt

A misconfigured robots.txt can accidentally block Googlebot from accessing your sitemap. Visit yoursite.com/robots.txt and confirm there is no Disallow rule that covers /sitemap or /wp-sitemap. If you recently changed your robots.txt, use the robots.txt testing tool in Google Search Console under Settings to verify crawlers can reach your sitemap URL. Our guide on finding and editing robots.txt in WordPress walks through this in detail.

Ready to Upgrade Your Website?

If you’re looking for fast WordPress hosting and done-for-you updates, check out our hosting packages by clicking the button below. A properly indexed WordPress sitemap is only as effective as the speed and reliability of your hosting, and GigaPress managed WordPress hosting starting at $2.40/month includes 99.9% uptime SLA and server-level caching that keeps Googlebot crawling efficiently.

Frequently Asked Questions About WordPress Sitemaps

Where is the WordPress sitemap URL?

The default WordPress sitemap is located at yoursite.com/wp-sitemap.xml. If you use Yoast SEO or Rank Math, the sitemap index is at yoursite.com/sitemap_index.xml. You can confirm which is active by visiting both URLs in your browser; the active one will return an XML document, and the inactive path will return a 404 or redirect.

Do I need a sitemap if my WordPress site is small?

Yes, even small sites benefit from having a sitemap submitted to Google Search Console. For a brand-new site with few external links pointing to it, the sitemap is often the only reliable way to get Google to discover your pages quickly. It also gives you access to indexing data inside Search Console, which is valuable for diagnosing SEO issues regardless of site size.

Should I disable the default WordPress sitemap if I use Yoast SEO?

You do not need to manually disable it. Yoast SEO automatically deactivates the default WordPress sitemap (wp-sitemap.xml) when its own sitemap feature is enabled, preventing duplicate sitemaps. Rank Math does the same. If you deactivate an SEO plugin, the default WordPress sitemap becomes active again automatically.

How often does the WordPress sitemap update?

The WordPress sitemap updates automatically in real time. Every time you publish, update, or delete a post or page, the sitemap reflects the change immediately on the next request. There is no manual update step required. If you use a caching plugin, verify that your sitemap URL is excluded from the cache so visitors and search bots always receive the latest version.

Can I have multiple sitemaps in WordPress?

Yes. The standard approach is a sitemap index file that references multiple individual sitemaps organized by content type. WordPress and all major SEO plugins generate a sitemap index by default. You can submit the single sitemap index URL to Google Search Console and it will follow the references to all sub-sitemaps automatically. You do not need to submit each sub-sitemap individually.

Similar Posts