SEO XML Sitemaps
An XML sitemap is a file that lists all the important pages on your website and provides information about each one — when it was last updated, how often it changes, and how important it is relative to other pages. Submitting your sitemap to Google helps crawlers find and index your pages faster and more completely.
What an XML Sitemap Looks Like
An XML sitemap is a structured file written in XML code. You never need to create this manually — SEO plugins generate it automatically.
Diagram: Simplified Sitemap Structure
https://yourwebsite.com/sitemap.xml
Content:
URL 1: https://yourwebsite.com/
Last Modified: 2024-09-01
Change Frequency: weekly
URL 2: https://yourwebsite.com/seo-guide/
Last Modified: 2024-08-15
Change Frequency: monthly
URL 3: https://yourwebsite.com/keyword-research/
Last Modified: 2024-08-20
Change Frequency: monthly
... and so on for every important page.
Why Sitemaps Matter for SEO
Google's crawlers discover pages by following links. If a page has few or no internal links pointing to it, crawlers may never find it. A sitemap acts as a direct shortcut — it hands Google a complete map of every page you want indexed, regardless of how well-linked those pages are.
Diagram: Sitemap as a Shortcut
WITHOUT SITEMAP:
Googlebot --> Follows links from Homepage
--> May miss 30% of pages (especially new or isolated ones)
WITH SITEMAP:
Googlebot --> Reads sitemap.xml
--> Knows about 100% of pages immediately
--> Crawls them faster and more completely
Types of Sitemaps
1. XML Sitemap (Standard)
The main sitemap containing all your standard web pages. This is what most websites need.
2. Image Sitemap
Lists all images on your site with additional metadata. Helps Google Image Search discover and index your images.
3. Video Sitemap
Lists videos hosted on your site with details like duration, thumbnail, and description. Improves visibility in Google Video Search.
4. News Sitemap
Specifically for news publishers. Lists articles published in the last 48 hours and signals them to Google News for inclusion.
5. Sitemap Index File
Large websites with thousands of pages use a sitemap index — a master file that points to multiple individual sitemaps (one per content type or date range). Google allows a maximum of 50,000 URLs per sitemap file.
What to Include in Your Sitemap
Include only pages you want indexed and that deliver value to visitors:
- Homepage
- Blog posts and articles
- Category pages
- Product and service pages
- Important landing pages
What to Exclude from Your Sitemap
- Pages with a noindex tag (contradictory to include them)
- Admin pages, login pages, checkout pages
- Duplicate or near-duplicate pages
- Paginated pages (except page 1)
- Thank-you pages and confirmation pages
- Pages blocked in robots.txt
How to Create a Sitemap in WordPress
WordPress SEO plugins generate your sitemap automatically:
- Yoast SEO: Sitemap is automatically generated at yoursite.com/sitemap.xml. Enable it under SEO → General → Features → XML Sitemaps.
- Rank Math: Go to Rank Math → Sitemap Settings. Configure which post types and taxonomies to include.
- Google XML Sitemaps plugin: A dedicated lightweight plugin if you prefer not to use a full SEO plugin.
How to Submit Your Sitemap to Google
Creating the sitemap is not enough — you must tell Google where it is:
- Log in to Google Search Console.
- Select your website property.
- In the left menu, go to Indexing → Sitemaps.
- Enter your sitemap URL (e.g., yoursite.com/sitemap.xml).
- Click Submit.
Google confirms submission and shows the number of URLs discovered and successfully indexed from your sitemap. Check back in 24 to 48 hours.
Keeping Your Sitemap Updated
WordPress plugins automatically update your sitemap whenever you publish or update a page. You do not need to resubmit to Google manually after each update — Google checks it regularly on its own. However, if you make major structural changes (site migration, new site section), manually re-submit your sitemap in Search Console to prompt a fresh crawl.
Key Takeaway
An XML sitemap gives Google a complete list of all pages you want indexed. It speeds up crawling and discovery, especially for large sites or new pages with few internal links. Generate your sitemap automatically with an SEO plugin, submit it via Google Search Console, and keep it updated to reflect only the pages you want ranked.
