Book a Session

How to Add an XML Sitemap to WordPress

An XML sitemap is a file that lists every page on your site in a format search engines can read directly — think of it as handing Google a table of contents instead of making it discover your pages one link at a time.

What happens without one

Search engines find new pages primarily by following links — from your homepage, from other pages on your site, from external sites linking to you. That works, eventually. But it’s slow, and it depends entirely on your internal linking being thorough. A page buried three clicks deep with no other page linking to it can sit undiscovered for a long time.

An XML sitemap short-circuits that process. Instead of waiting to be found through links, every page on the list gets submitted directly.

What a sitemap actually contains

At minimum, a sitemap lists each page’s URL and when it was last modified, so a search engine can prioritize re-crawling pages that have actually changed rather than wasting effort on pages that haven’t. A well-built sitemap also correctly excludes pages that shouldn’t be indexed at all — password-protected content, internal search results, thin auto-generated pages — so the sitemap doesn’t accidentally point search engines toward low-value content.

How Sanctuary Tiger SEO handles this

The free plugin generates an XML sitemap automatically, with support for custom post types — meaning if you’re running anything beyond standard posts and pages (a portfolio, a resource library, a review type), those get included in the sitemap too, not just the default content types WordPress ships with.

There’s no configuration step required. Once the plugin is active, the sitemap exists and updates itself as you publish and edit content.

WordPress Robots.txt Editor screenshot showing custom rules and reference syntax
Your robots.txt file quietly signals your sitemap location to Google, ensuring your content is discoverable even without Search Console submission.

Submitting your sitemap to Google

Generating the sitemap is half the job — telling Google where it is closes the loop. In Google Search Console, under Sitemaps, you can submit your sitemap URL directly (typically yoursite.com/sitemap.xml or similar, depending on how your SEO plugin structures it). This isn’t strictly required — Google does discover sitemaps referenced in your robots.txt file automatically — but submitting it directly in Search Console gives you visibility into how many of your submitted pages actually got indexed, which is useful for catching problems early.

Try our demo and watch your XML sitemap generate automatically — no setup, no code, just clarity. https://rachelharrisonhambrick-dnakr.wpcomstaging.com/seo-demo

The takeaway

A sitemap alone won’t make an unfinished or thin page rank — it just makes sure search engines know a page exists in the first place. But for anything you actually want found, having no sitemap at all is like publishing a book with no table of contents and hoping someone stumbles onto chapter twelve.

Get automatic XML sitemaps free on WordPress.org →

Used to track the user across multiple sessions.