How to Set Up a WordPress Sitemap

Erika Varagouli

Sep 07, 20213 min read
wordpress sitemap

Your website’s sitemap is more important than you think. A good sitemap helps search engines find and read your website more efficiently, which can impact how your website ranks.

If you manage a WordPress website, follow the steps below to create or update your sitemap.

What is a Sitemap?

A sitemap is a type of file that provides information about the pages on your website. It usually includes each URL associated with your site. Website crawlers can review sitemaps to explore a website and understand its content. 

Here is an example of an XML sitemap:

website sitemap

WordPress accepts both HTML & XML sitemap formats, but this guide will work specifically with XML sitemaps. Search engines use XML sitemaps to crawl websites. 

Learn more about sitemaps in our complete guide to website sitemaps

Why are Sitemaps Important?

Sitemaps help Google navigate your site. Search engines use your sitemap to navigate each page of your website to learn more about its linking structure, content, and more. 

Crawl bots review and “click” on each link in your sitemap (known as “crawling.”) Google will do its best to understand what your website is about, so it can add your website to its database (“indexing”) and begin ranking your pages for search queries.

Sitemaps are particularly useful if your website’s internal linking is poor or your site has many pages. 

How Sitemaps Work on WordPress 

By default, your WordPress site includes a sitemap. However, the default WordPress XML sitemap is limited to 1000 pages, so any additional pages will not appear in your sitemap. 

To activate the default WordPress sitemap:

  1. Go to Settings → General
  2. Change privacy to “public”

Why Custom Sitemaps are Important on WordPress

WordPress sitemap limitations can severely impact your website’s sitemap once you exceed 100 pages. If you limit the number of pages in your sitemap, you can’t guarantee that all of your most important pages will make the cut. 

Creating a custom sitemap for your WordPress site makes it easier for search engines to crawl your site entirely.

When creating your sitemap, include your most important pages so Google can index and rank them. 

How to Create Your Own WordPress Sitemap

You can generate your own WordPress sitemap with a WordPress sitemap plugin. There are two popular plugins that will create WordPress sitemaps for you in just a few steps:

Yoast SEO

Yoast SEO is a WordPress sitemap plugin well known for assisting with on- and off-page optimization. Yoast users can also use the plugin to create a full sitemap with one click.

To activate the Yoast SEO sitemap feature:

  1. Install Yoast SEO 
  2. Navigate to SEO → General → Features
wordpress sitemap
  1. Click on XML Sitemaps and switch the toggle button to “on:”
    wordpress sitemap
  2. Click ‘See the XML Sitemap’ to view your full sitemaps with all the URLs on your site

XML Sitemap Generator

The XML Sitemap Generator plugin is a free and easy option for generating a full sitemap. It also notifies search engines when new pages are added or changed.

To activate the XML Sitemap Generator:

  1. Install the plugin
  2. Navigate to Settings → XML Sitemap
  3. Check your sitemap URL
  4. Troubleshoot by debugging or notify Google about sitemap changes from this page:
    wordpress sitemap

How to Check Your WordPress Sitemap

You should be able to view your XML sitemap by adding “/sitemap.xml” to the end of your domain (“yoursite.com/sitemap.xml.”) You can also use third-party crawler tools to review your sitemap and check for issues. 

Auditing tools like the Site Audit tool can crawl your site for multiple website issues, including any affecting your WordPress sitemap. 

To run a site audit:

  1. Under Management, navigate to Projects from the Semrush dashboard. Select Add a new project from the top right of the screen.
wordpress sitemap
  1. Open your project dashboard. Select Site Audit.
wordpress sitemap
  1. Configure your audit settings before running your audit. The Site Audit tool allows you to set page limits, disallow any irrelevant links, or add further website credentials.
wordpress sitemap
  1. The tool alerts you when your audit results are ready for review. From the tool’s overview report, select Issues to review all site errors in list format:
    Dimjia79SElIJP_3ejheoGHcN20k3cjFXpjy-PYTvnUrWt1tDTMRDKxWTOs5KqHcwoCQRTYxwXxaeiMneh2U_bd1PxXq9d5ZTT6TJCdL-uO08wKN2WQw9EvTbhgCqcuIr3W8T3KT=s0
  2. Use the search function to filter for any sitemap errors. The Site Audit tool highlights each error and categorizes them by priority.
nZeDm-drZVHMYJa08T0QKzdPrXtzug1z5tsr_JEg1781L7iFhEUfFpiSkpxfMDOOvA2Hq1XI0L-7q9p0T5MwyD6at3HI6nJhkDCifZxOQ1hJ54nvpTIAHI6ust3g35hYJyVtRK2l=s0

Key Takeaways

Sitemaps are important to Google’s indexing process; they make your website easier to crawl. Although WordPress generates a default sitemap for your site, it’s quite limited and may exclude important pages. 

You’ll benefit from creating your own XML sitemap with WordPress plugins, and auditing your sitemap for any errors.

Find and Fix Sitemap Errors

with the Site Audit Tool

ADS illustration
Author Photo
Erika VaragouliI create local and global content marketing strategies here at Semrush. I started my career as a journalist, but gradually the world of SEO and content marketing won me over. I am obsessed with creating content people love, Nick Cave, and Italian films. Fueled by caffeine.
Subscribe to learn more about Technical SEO
By clicking “Subscribe” you agree to Semrush Privacy Policy and consent to Semrush using your contact data for newsletter purposes