Download is Just A Click Away!

Enter your email to download SureRank and get updates on new features.

This field is required.
BACK TO BLOG

How to Set Up an XML Sitemap in WordPress and Submit It to Google

By SureRank Team

You have built your WordPress site. Published your first posts. Done everything you were supposed to do.

But here is a question worth pausing on: does Google actually know any of those pages exist?

Publishing content does not automatically put it in front of Google. Search engines discover pages by crawling the web, following links, and checking signals you send them. A new site with no inbound links and no sitemap can sit completely invisible for weeks, sometimes months, while perfectly good content waits to be found.

An XML sitemap fixes this. It is the direct line of communication between your site and every search engine that matters. It tells Google exactly which pages exist, when they were last updated, and how to find every piece of content you have published.

Setting one up on WordPress takes under five minutes. Submitting it to Google takes two more. And yet a surprising number of WordPress sites either do not have one, have one that is broken, or have one that was set up years ago and never verified since.

This guide walks through the complete process: what an XML sitemap actually is, why it matters in 2026, how to set one up correctly in WordPress, how to submit it to Google Search Console, and how to verify it is working the way it should.

What Is an XML Sitemap?

An XML sitemap is a file on your website that lists all the important URLs you want search engines to find and index.

Think of it as a table of contents written specifically for search engine crawlers. Instead of waiting for Googlebot to discover your pages by following links, you hand Google a complete, organised list of every page that matters on your site.

The file lives at a predictable URL on your domain. For most WordPress sites, that address looks like this:

yoursite.com/sitemap_index.xml

Inside the file, every URL entry can include the page address, the date it was last modified, and whether images are included. Google uses this information to prioritise which pages to crawl first and how to understand the structure of your site.

One important clarification: XML sitemaps are not the same as HTML sitemaps.

  • An XML sitemap is for search engines. Visitors never see it. It lives in the background and exists purely to communicate your site structure to crawlers.
  • An HTML sitemap is a page on your site for human visitors. It shows your site structure in a browsable format and helps users navigate your content.

Both have value. But when SEO guides refer to “submitting your sitemap to Google,” they always mean the XML version.

Why XML Sitemaps Matter More Than Ever in 2026

Some site owners treat sitemaps as optional. They are not, and here is why.

Google’s Crawl Budget Is Real

Google does not have unlimited capacity to crawl every page on the internet every day. It allocates a crawl budget to each site based on its authority, speed, and how often content changes. For newer sites and smaller sites with limited backlinks, that budget is especially tight.

A sitemap tells Google which URLs are worth prioritising. Without one, crawlers navigate your site by following internal links, which means any page that is not well-linked internally may never get indexed at all.

New Content Needs a Signal to Get Found

When you publish a new post, Google finds out through three routes: your sitemap, links from other sites, and links from within your own site. For a new domain or a fast-publishing site, internal links alone are not enough. The sitemap is the fastest and most reliable discovery signal available to you.

AI-Powered Search Engines Use Structured Signals

In 2026, Google’s AI Overviews, ChatGPT, Perplexity, and other AI search tools use structured data signals including sitemap coverage to understand what content exists on your site. A sitemap is one of the clearest structural signals you can provide. Sites with clean, complete sitemaps are more likely to be comprehensively understood and cited by AI search features.

Sitemaps Surface Content That Links Might Miss

A post buried three clicks deep in your navigation, a product page linked only from a category archive, an author archive page, a tag or taxonomy page: all of these can slip through the cracks of normal crawling. A sitemap catches everything.

The Different Types of Sitemaps (And Which Ones Your Site Needs)

Not every site needs every sitemap type. Here is what each one does and who benefits.

XML Sitemap

The standard sitemap format that every WordPress site should have. Lists all your posts, pages, custom post types, and optionally your categories, tags, and archives. This is the baseline. Every WordPress site needs this.

Sitemap Index File

When your site has enough content to generate multiple sitemaps (one for posts, one for pages, one for products, and so on), a sitemap index file acts as a master list that points to each individual sitemap. WordPress SEO plugins generate this automatically. You submit the sitemap index URL to Google rather than each individual sitemap.

HTML Sitemap

A human-readable page on your site that lists all your content in a browsable format. Does not replace the XML sitemap for search engines, but helps users navigate large sites and adds an additional internal linking layer that crawlers appreciate.

Video Sitemap

A specialised sitemap that includes metadata about videos embedded on your site: titles, descriptions, durations, and thumbnail URLs. Makes your video content eligible to appear in Google’s video search results and video-rich results.

News Sitemap

Required for publishers who want their articles to appear in Google News. Must contain only articles published in the last 48 hours. Only relevant for news and media publishers.

Image Sitemap

Can be included within your standard XML sitemap to provide Google with additional information about images on your pages. Improves image search visibility and helps search engines understand visual content even when alt text is missing or incomplete.

Author Sitemap

Lists archive pages for individual authors on your site. Useful for multi-author publications and supports Google’s author entity recognition, which strengthens E-E-A-T signals for content associated with named authors.

Does WordPress Already Have a Built-In Sitemap?

Yes, technically. WordPress has generated a basic XML sitemap automatically since version 5.5.

You can find it at: yoursite.com/wp-sitemap.xml

But the built-in WordPress sitemap has real limitations.

  • It cannot be customized. You cannot exclude specific posts, pages, or post types.
  • It does not support images in the sitemap.
  • It does not generate video, news, or HTML sitemaps.
  • It does not integrate with Google Search Console.
  • It does not notify Google when you publish new content.
  • It does not allow you to control which content is included or excluded.

For a site that is serious about SEO, the default WordPress sitemap is a starting point, not a solution. An SEO plugin gives you a properly managed, fully configurable sitemap that stays in sync with your content automatically.

How to Set Up an XML Sitemap in WordPress with SureRank

SureRank generates and manages your XML sitemap automatically the moment you install it. There is no separate setup required to get the core sitemap running.

Here is exactly how it works and what you can configure.

Step 1: Install SureRank

If you have not already installed SureRank, search for it in your WordPress plugin directory under Plugins and Install New Plugin. Search for “SureRank,” install it, and activate it.

The onboarding wizard runs automatically after activation and handles your foundational SEO settings including sitemap configuration. By the time the wizard completes, your XML sitemap is already generated and live.

Download SureRank free from WordPress.org.

Step 2: Confirm Your Sitemap Is Active

Once SureRank is installed and activated, your sitemap is live at:

yoursite.com/sitemap_index.xml

Open a new browser tab and visit that URL to confirm it is accessible. You should see an XML file listing your individual sitemaps, typically one for posts, one for pages, and any custom post types you have active.

If the sitemap does not appear immediately, you can trigger it manually:

  • Go to SureRank > General > Sitemaps in your WordPress dashboard.
  • Confirm the Enable XML Sitemap toggle is turned on.
  • Click Regenerate if needed.

Step 3: Configure Your Sitemap Settings

SureRank’s sitemap settings give you control over what is included and excluded.

Navigate to SureRank > General > Sitemaps to access all sitemap options.

Under the XML section, you will find:

  • Enable XML Sitemap: The main toggle. Leave this on.
  • Include Images in XML Sitemap: When enabled, images from your posts and pages are added to the sitemap, improving image search visibility. Recommended for most sites.

Post type and taxonomy controls: SureRank lets you choose which post types and taxonomies appear in the sitemap. If you have custom post types, draft status pages, or content types you do not want indexed, you can exclude them here without affecting the rest of the sitemap.

Author sitemap: SureRank 1.9.0 added dedicated author SEO support, including the ability for each author to manage their own archive page’s SEO settings. If you run a multi-author site, enabling the author sitemap adds author archive pages to your sitemap structure and strengthens individual author entity signals in Google.

See the full SureRank sitemap documentation.

Step 4: Enable Post-Type Archive Pages in the Sitemap

In SureRank 1.9.0 (released June 2026), post-type archive pages were added to the XML sitemap automatically. If you have custom post types with archive pages on your site, these are now included in your sitemap without any manual configuration. This was a common gap for sites with custom post types and is now handled natively.

Step 5: Add Your Sitemap to robots.txt

Your robots.txt file is a set of instructions at the root of your site that tells crawlers how to behave. Including your sitemap URL in robots.txt means every crawler that visits your site, not just Google, automatically finds and processes your sitemap.

SureRank includes a built-in robots.txt editor. Navigate to your SureRank settings and find the Robots.txt section. The sitemap URL is typically added automatically.

To verify, you can also check your robots.txt file directly by visiting:

yoursite.com/robots.txt

Look for a line that reads: Sitemap: yoursite.com/sitemap_index.xml

If it is there, every major search engine will find your sitemap automatically.

Manage your robots.txt settings in SureRank.

Advanced Sitemap Features Available in SureRank Pro

SureRank’s free version covers the XML sitemap fully. SureRank Pro extends this with specialised sitemap types for sites that need them.

HTML Sitemap

SureRank Pro generates an HTML sitemap that you can display on any page of your site using a simple block or shortcode. This gives human visitors a browsable view of all your content and creates an additional internal linking layer that search engines appreciate.

How to show the HTML sitemap on your site.

Video Sitemap

For sites with video content, SureRank Pro generates a video sitemap that includes video titles, descriptions, and thumbnail information. This makes your video content eligible for enhanced visibility in Google Video search and video-rich results in the main SERP.

How to enable the video sitemap in SureRank Pro.

News Sitemap

For news publishers and blogs that publish frequently, the news sitemap ensures your latest articles are surfaced to Google News within hours of publishing. SureRank Pro handles the 48-hour window requirement automatically.

How to enable the news sitemap in SureRank.

Instant Indexing Alongside Your Sitemap

Submitting a sitemap tells Google your pages exist. SureRank Pro’s Instant Indexing feature goes one step further: it pushes each new page directly to Google’s Indexing API the moment you publish.

The sitemap and Instant Indexing work together. The sitemap provides the comprehensive map of your site. Instant Indexing sends an immediate ping for every new piece of content. Together, they give you the fastest possible route from publishing to Google index.

See how SureRank’s Instant Indexing works.

SureRank Pro starts at $99 per year for up to 10 sites.

How to Submit Your XML Sitemap to Google Search Console

Having a sitemap is not enough on its own. You need to tell Google where it lives. Submitting it through Google Search Console is the official, reliable way to do that.

Here is the complete process.

Step 1: Open Google Search Console

Go to search.google.com/search-console and log in with the Google account you use to manage your website. If you have not verified your site in Search Console yet, you will need to complete that first.

Step 2: Select Your Property

In the top-left corner of Search Console, select your website from the property dropdown. Make sure you select the correct version of your site, the HTTPS version that you actually use.

Step 3: Navigate to the Sitemaps Report

In the left-hand navigation panel, click Indexing to expand the section, then click Sitemaps. This opens the Sitemaps report where you can submit, monitor, and remove sitemaps.

Step 4: Enter Your Sitemap URL

In the field labelled Add a new sitemap, enter the path to your sitemap. For SureRank users, this will be:

sitemap_index.xml

You only need to enter the part after your domain. Google already knows your domain because you are inside the Search Console for that property. Click Submit.

Step 5: Confirm the Submission

After submitting, Google will display your sitemap in the list below the submission field. You will see the URL, the date submitted, the date Google last fetched it, and the current status.

A green Success status means Google has fetched and processed your sitemap successfully. Your URLs are now queued for crawling.

If you see a Could not fetch or Has errors status, see the troubleshooting section below.

Step 6: Monitor the Sitemap Report Over Time

The Sitemaps report in Search Console is not just for submission. It is an ongoing monitoring tool. Check it monthly to confirm:

  • Your sitemap is still being fetched regularly
  • The number of submitted URLs matches what you would expect from your content
  • No errors have appeared since your last check

How SureRank simplifies this: SureRank integrates directly with Google Search Console and surfaces performance data inside your WordPress dashboard. You can monitor impressions, clicks, and indexing status without logging into Search Console separately. New in SureRank 1.9.0, you can now see the Google Search Console URL inspection status directly inside the SEO meta box for each post, so you can check whether any individual page is indexed without leaving WordPress.

Connect Google Search Console to SureRank.

Common Sitemap Problems and How to Fix Them

Problem: Sitemap Returns a 404 Error

This usually happens when the sitemap was deactivated in your SEO plugin settings, or when WordPress is caching an old response.

Fix: Go to SureRank > General > Sitemaps and confirm the XML sitemap toggle is enabled. Click Regenerate. Then clear your WordPress cache if you have a caching plugin active. Visit the sitemap URL again in incognito mode to confirm it loads.

Problem: Status Shows “Couldn’t Fetch” in Search Console

Google attempted to access your sitemap and failed. This is often a temporary issue on Google’s end.

Fix: Wait 24 hours and check again. Google automatically retries fetching sitemaps. If the problem persists after 24 hours, verify the sitemap URL is accessible in incognito mode and check whether your robots.txt file is accidentally blocking the sitemap.

Problem: Sitemap Shows Fewer URLs Than Expected

The number of discovered URLs in Search Console is lower than the number of pages you have published.

Fix: Check your sitemap configuration in SureRank to confirm the right post types and taxonomies are included. Also check that pages you expect to be in the sitemap are not set to “noindex” in their individual SEO settings. Noindexed pages are intentionally excluded from sitemaps.

Problem: Sitemap Includes Pages That Should Not Be There

You may have draft pages, staging content, or low-value pages appearing in the sitemap.

Fix: In SureRank, open the individual page or post, find the SureRank meta box, and set the indexing to “noindex.” Alternatively, exclude the entire post type from the sitemap in SureRank > General > Sitemaps.

After making exclusions, use the Regenerate function to rebuild the sitemap with the updated settings.

How to regenerate the sitemap after excluding a post type.

Problem: The Sitemap URL Changed After Switching Plugins

If you recently migrated from Yoast SEO, Rank Math, or another plugin to SureRank, your sitemap URL may have changed. Any Search Console submission using the old URL needs to be updated.

Fix: SureRank’s migration wizard imports all your settings from the previous plugin. After migration, verify the sitemap URL and resubmit in Search Console if it has changed. SureRank also allows you to customise the sitemap URL if needed.

How to change the sitemap URL in SureRank.

Sitemap Best Practices for WordPress in 2026

Following these practices keeps your sitemap healthy and maximises its value.

Only Include Indexable Pages

Every URL in your sitemap should be a page you want Google to index and rank. Do not include:

  • Noindex pages (login pages, thank you pages, admin pages)
  • Duplicate content URLs
  • Pages with redirect status codes
  • Staging or development URLs

SureRank handles this automatically by excluding noindexed pages from the sitemap by default.

Keep Your Sitemap Updated

Your sitemap should reflect your current site accurately. SureRank regenerates the sitemap automatically whenever you publish, update, or delete content. You never have to manually update or resubmit the sitemap after the initial Search Console submission.

Do Not Include More Than 50,000 URLs in a Single Sitemap

Google’s limit is 50,000 URLs per sitemap file and 50 megabytes uncompressed. For large sites that exceed this, SureRank generates multiple sitemap files organised under a sitemap index, keeping each individual file within the limit automatically.

Include Image Data in Your Sitemap

Enabling image inclusion in your SureRank sitemap settings helps Google understand the visual content on your pages and improves your eligibility for image search results. This is especially valuable for photography sites, eCommerce stores, and any content-heavy site with significant visual assets.

Ping Bing as Well as Google

Google Search Console handles Google. Bing Webmaster Tools has its own sitemap submission process. If your audience includes users on Microsoft Edge or Bing Search, submitting your sitemap to Bing Webmaster Tools takes the same amount of time and extends your indexing coverage beyond Google.

Your Sitemap Checklist Before You Submit

Run through this before submitting to Google.

  • SureRank installed and XML sitemap toggle confirmed active
  • Sitemap URL accessible in incognito mode (yoursite.com/sitemap_index.xml)
  • Images enabled in sitemap settings if your site has significant visual content
  • Post types and taxonomies configured to include the right content
  • Noindex pages confirmed excluded from the sitemap
  • Sitemap URL referenced in robots.txt
  • Google Search Console property verified and ready to receive submission
  • Sitemap URL submitted in Search Console Sitemaps report
  • Status confirmed as Success with a recent fetch date
  • SureRank site audit run to confirm no sitemap-related issues flagged

Once every item is checked off, your sitemap setup is complete.

The Bigger Picture: Sitemaps Are the Start, Not the Finish

A properly configured and submitted XML sitemap is one of the most important foundational steps in WordPress SEO. But it is the beginning of the indexing and ranking process, not the end.

Once Google knows your pages exist and begins indexing them, the factors that determine where they rank are content quality, keyword relevance, on-page optimisation, internal linking, backlinks, and page experience. The sitemap gets your pages into the game. Everything else determines how well they perform once they are there.

SureRank handles the sitemap layer automatically and completely, so you can focus on the content and strategy work that actually builds long-term rankings.

Start with the free version of SureRank and have your sitemap live in minutes.

When you are ready for video and news sitemaps, HTML sitemap generation, Instant Indexing, and the full AI-powered SEO stack, SureRank Pro starts at $99 per year for up to 10 sites.

Frequently Asked Questions

What is an XML sitemap and why do I need one? 

An XML sitemap is a file on your website that lists all the important URLs you want search engines to discover and index. It acts as a direct communication channel between your site and search engine crawlers, telling Google which pages exist, when they were last updated, and how to find your content. 

Where is my WordPress sitemap URL? 

For WordPress sites using SureRank, your sitemap is located at yoursite.com/sitemap_index.xml. You can also find the URL by going to SureRank > General > Sitemaps in your WordPress dashboard. The sitemap index file links to individual sitemaps for your posts, pages, and any custom post types you have enabled.

How do I submit my sitemap to Google Search Console? 

Go to search.google.com/search-console, select your property, click Indexing in the left navigation, then click Sitemaps. In the Add a new sitemap field, enter sitemap_index.xml and click Submit. 

Does SureRank automatically create an XML sitemap? 

Yes. SureRank generates your XML sitemap automatically the moment you install and activate the plugin. The sitemap is live at yoursite.com/sitemap_index.xml immediately after setup with no additional configuration required. 

What is the difference between an XML sitemap and an HTML sitemap? 

An XML sitemap is for search engine crawlers. Visitors never see it. It communicates your site structure to Google and other search engines. An HTML sitemap is a browsable page on your site for human visitors that shows your content in a navigable format. SureRank Pro generates both types.

Do I need to resubmit my sitemap to Google every time I publish new content? 

No. Once you submit your sitemap URL to Google Search Console, Google periodically re-fetches it automatically. Your sitemap updates itself every time you publish or update content, and Google picks up those changes on its next scheduled crawl. SureRank Pro’s Instant Indexing feature accelerates this further by notifying Google immediately each time you publish.

What should I do if my sitemap shows a “Couldn’t fetch” error in Search Console? 

Wait 24 hours and check again. This error often resolves on its own as Google retries automatically. If it persists, verify the sitemap URL loads correctly in an incognito browser window, check that your robots.txt file is not blocking the sitemap, and confirm your site is accessible without login requirements.

How many sitemap types does SureRank support? 

SureRank free includes XML sitemap generation with image support and author sitemaps. SureRank Pro adds HTML sitemap, video sitemap, and news sitemap generation, covering every major sitemap type you might need for a WordPress site.

Can I exclude specific pages from my sitemap in SureRank? 

Yes. You can exclude individual pages by setting them to noindex in the SureRank meta box on that page, which automatically removes them from the sitemap. You can also exclude entire post types or taxonomies from the sitemap in SureRank > General > Sitemaps. 

Leave a Comment

Your email address will not be published. Required fields are marked *

Unlock Your Website’s Full SEO Potential and Drive Organic Growth

Start optimizing your website with a simple, lightweight SEO assistant that
makes it easy to improve rankings and track performance.

designed for simplicity and speed
Designed for Simplicity and Speed
free download. no credit card required
Start for Free. No Credit Card Required
7 world class support team
24/7 World Class Support Team
Scroll to Top