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:
-
Install and activate Yoast SEO
-
Go to SEO → Settings
-
Enable XML Sitemaps
-
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:
-
Install Rank Math SEO
-
Go to Rank Math → Sitemap Settings
-
Enable Sitemaps
-
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:
-
Install All in One SEO
-
Go to All in One SEO → Sitemaps
-
Enable XML Sitemap
-
Customize content types
Pros:
-
Simple interface
-
Auto updates
-
Google-friendly
5. Using Google XML Sitemaps Plugin
Dedicated sitemap plugin.
Steps:
-
Install Google XML Sitemaps
-
Activate it
-
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:
-
Install Jetpack
-
Enable SEO Tools
-
Sitemap is auto-generated
Sitemap URL:
yourwebsite.com/sitemap.xml
7. Manually Creating Sitemap (Advanced)
For developers or static sites.
Steps:
-
Create a
sitemap.xmlfile -
Add all URLs manually
-
Upload to root directory via FTP
Best for:
-
Custom setups
-
Headless WordPress
8. Submitting Sitemap to Google Search Console
After generating the sitemap:
Steps:
-
Open Google Search Console
-
Go to Sitemaps
-
Enter sitemap URL
-
Click Submit