How to Generate a Sitemap in WordPress ?

Table of Contents

How to Generate a Sitemap in WordPress (All Methods)

1. Using WordPress Default Sitemap (No Plugin)

WordPress automatically creates an XML sitemap.

How to find it:

yourwebsite.com/wp-sitemap.xml

Includes:

  • Posts

  • Pages

  • Categories

  • Tags

  • Author archives

Pros:

  • No plugin required

  • Lightweight and fast

Cons:

  • Limited control

  • Cannot easily exclude pages or posts

2. Using Yoast SEO Plugin

One of the most popular SEO plugins.

Steps:

  1. Install and activate Yoast SEO

  2. Go to SEO → Settings

  3. Enable XML Sitemaps

  4. Click View the XML sitemap

Sitemap URL:

yourwebsite.com/sitemap_index.xml

Pros:

  • Automatic updates

  • Easy to manage

  • Search-engine friendly

3. Using Rank Math SEO Plugin

Best for advanced control.

Steps:

  1. Install Rank Math SEO

  2. Go to Rank Math → Sitemap Settings

  3. Enable Sitemaps

  4. Choose post types and taxonomies

Sitemap URL:

yourwebsite.com/sitemap_index.xml

Pros:

  • Advanced settings

  • Easy exclusions

  • Fast indexing

4. Using All in One SEO (AIOSEO)

Beginner-friendly plugin.

Steps:

  1. Install All in One SEO

  2. Go to All in One SEO → Sitemaps

  3. Enable XML Sitemap

  4. Customize content types

Pros:

  • Simple interface

  • Auto updates

  • Google-friendly

5. Using Google XML Sitemaps Plugin

Dedicated sitemap plugin.

Steps:

  1. Install Google XML Sitemaps

  2. Activate it

  3. Sitemap is generated automatically

Sitemap URL:

yourwebsite.com/sitemap.xml

Pros:

  • Lightweight

  • Focused only on sitemaps

6. Using Jetpack Plugin

Good for Jetpack users.

Steps:

  1. Install Jetpack

  2. Enable SEO Tools

  3. Sitemap is auto-generated

Sitemap URL:

yourwebsite.com/sitemap.xml

7. Manually Creating Sitemap (Advanced)

For developers or static sites.

Steps:

  1. Create a sitemap.xml file

  2. Add all URLs manually

  3. Upload to root directory via FTP

Best for:

  • Custom setups

  • Headless WordPress

8. Submitting Sitemap to Google Search Console

After generating the sitemap:

Steps:

  1. Open Google Search Console

  2. Go to Sitemaps

  3. Enter sitemap URL

  4. Click Submit