WordPress sitemap

Search Engine Optimization (SEO) is all about tweaking your content so it’s more attractive to search engines like Google. However, you also need to make sure that Google can find your content in the first place. To help make sure Google indexes all of your content, you can create a WordPress sitemap.

A sitemap is a simple file you can add to your website, which lists all of its pages, posts, and so on. It helps search engine bots understand what your content is all about and how it’s organized. You can generate one automatically in a few minutes, and the resulting SEO benefits are often significant.

In this guide, we’ll briefly discuss how sitemaps work and why they’re important. Then we’ll show you several plugins you can use to create a WordPress sitemap right away. Let’s take a look!

What sitemaps are (and how they benefit your site)

In order to do their job well, search engines have to decide what keywords your content is most relevant to, and how high it should be placed in search results. They accomplish this through the use of bots, such as Googlebot. Once these search engine bots find your site, they will explore (or ‘crawl’) it to learn everything they can.

If you want to make it easier for search engines to ‘crawl’ all of your content, you can provide the bots with an XML sitemap. This is an organized list of all the pages on your site:

An example of a WordPress sitemap.

Offering search engine bots a sitemap helps them to understand your content more quickly. It demonstrates the structure and hierarchy of your site, making it clear what pages are most important and which are interrelated. In addition, a sitemap ensures that the bots will actually see every page on your site.

For these reasons, sitemaps can have a significant positive effect on the success of your SEO strategy. According to Google, sitemaps are most important for sites that are very large, don’t use many internal links, are new, or incorporate a lot of media. However, a sitemap can serve as a solid addition to any website – especially because it’s so easy to create one.

How to add a WordPress sitemap to your website (using 3 plugins)

If you’re building or running a WordPress website, creating a sitemap should be a priority. Fortunately, there are a lot of options for adding sitemaps – most of which involve plugins.

In fact, so many SEO-focused plugins include sitemap functionality that you’ll want to be careful not to have more than one devoted to the task. If you end up with multiple sitemaps, you risk confusing the search engine bots.

Before implementing one of the following solutions, therefore, you’ll want to check and see if any of your current plugins have already generated a sitemap for you. If not, or if you don’t have an installed SEO plugin yet, we recommend using one of the following options. They all produce essentially the same results.

1. Yoast SEO

Yoast SEO is a staple of many WordPress sites. Chances are you already know how it can help improve your content’s rankings. What you may not realize is that it also creates a sitemap to bolster your SEO even further.

Once Yoast is installed on your site, you can navigate to SEO > General and select the Features tab. There, you’ll find a setting called XML sitemaps:

The Yoast SEO Sitemaps option.

This option is activated by default. As long as it’s set to On, Yoast will generate a WordPress sitemap and keep it up-to-date for you. If you hover over the question mark icon, you can even see what the sitemap looks like.

While most users can stop here, you are able to customize what appears in your sitemap if you wish. To do this, navigate to SEO > Search Appearance and click on Content Types:

The Yoast SEO advanced sitemap settings.

If you select No for the option Show Posts in search results, posts will be removed from your sitemap. This also applies to the similar setting for Pages right below, as well as the corresponding options in the Taxonomies and Archives tabs.

2. All in One SEO Pack

Like Yoast, All in One SEO Pack is an incredibly popular SEO-focused plugin. It performs a lot of crucial tasks automatically, such as informing search engines about changes to your site, optimizing titles, generating tags, and creating a sitemap.

With the plugin installed on your site, head to All in One SEO > Feature Manager. Then, find the XML Sitemaps option:

The sitemap feature in All in One SEO Pack.

Just click on the box to activate the feature. That’s all you need to do to automatically generate a WordPress sitemap.

You can also customize your sitemap, if you want to, in the new section labeled XML Sitemap (under All in One SEO):

Advanced sitemap settings in All in One SEO Pack.

Here, you can decide what types of content will be included in your sitemap, schedule updates to it, and even add pages manually. You can also take a look at the results in the Sitemap Status section.

3. XML Sitemap & Google News Feeds

As we mentioned, plenty of SEO plugins besides Yoast and All in One SEO Pack include sitemap functionality. If, for whatever reason, you don’t want to add one of these tools to your site, you can create a WordPress sitemap using a dedicated plugin instead.

XML Sitemap & Google News Feeds is one of the better options, with excellent recent reviews and consistent updates. In addition to generating customizable sitemaps, it can also be used to create sitemaps specifically designed for Google News content.

After installing the plugin, visit Settings > Reading in your dashboard. You’ll see an option to enable one or both types of sitemap:

The sitemap option in XML Sitemap & Google News Feeds.

Select XML Sitemap, and click on Save Changes at the bottom of the screen. This will automatically generate your sitemap, which you can see by clicking on View next to the option you just enabled. In addition, you’ll find a number of settings you can use to include or exclude specific types of content from the sitemap:

The advanced settings in XML Sitemap & Google News Feeds.

The default settings should suffice for most sites, but feel free to tweak them if you want. Just remember to hit Save Changes again when you’re done.

How to get your WordPress sitemap noticed quickly

You can simply create a WordPress sitemap, and the search engine bots will find it eventually. However, you can also speed up the process by submitting your new sitemap to Google Search Console.

This works no matter what plugin you used above. Simply head to the Search Console home page, and add your website as a new property if you haven’t already. Then select the property and navigate to Crawl > Sitemaps:

Adding a sitemap in Google Search Console.

Choose the Add/Test Sitemap button, paste in the link to your sitemap, and click on Submit. This should help Google find your sitemap quickly. You can revisit this page in a few hours to see whether your sitemap is now listed, which will let you know your submission was successful.

If you want more detailed instructions, we have a whole article dedicated to Google Search Console and WordPress.

Conclusion

Some of your site’s most important features are the ones human visitors will never even see. Once you’ve created a WordPress sitemap, it will run quietly in the background, helping bots make sense of your content and improving your SEO results.

What’s more, generating a WordPress sitemap is simple. You can do so using the following plugins:

  1. Yoast SEO
  2. All in One SEO Pack
  3. XML Sitemap & Google News Feeds
Do you have any questions about how to add a sitemap to WordPress? Ask away in the comments section below!
Free guide

5 Essential Tips to Speed Up
Your WordPress Site

Reduce your loading time by even 50-80%
just by following simple tips.

Download free guide