Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

Sven Scheuerle Last updated 10/23/2020
7 Min.
create xml sitemap
Last updated 10/23/2020

With an XML sitemap you help search engines to easily understand the structure of your WordPress website. You make the crawlers' work easier and determine which content should be indexed by Google & Co. Which long-term advantages a sitemap has, which two useful WordPress -Plugins you can use for this and how you submit an XML sitemap, you will learn in this article. 

What is a sitemap anyway?

When we're talking about the so-called "sitemap" of your WordPress website, we usually mean the XML sitemap. The acronym XML stands for "Extensible Markup Language". Put simply, it is a language for exchanging hierarchically structured data in the form of a text file.

The XML sitemap thus displays all URLs, or rather a list of all URLs (individual pages, documents). The main purpose of this list is that it can be read in an automated way. To be more precise, the search engine crawlers use this list to index the contents of your website quickly and easily. 

You don't have to create an XML sitemap in WordPress but it is recommended. It makes the work of Google and Co. easier and your content is usually listed faster in search results. To this end, you can also submit your WordPress sitemap to search engines such as Google or Bing. 

In addition to the so-called XML sitemap, which is primarily intended for machine readout, there is also the HTML sitemap. This is not a text file, but an HTML page, on which all subpages of a website are listed in a table. This sitemap is just there for visitors to gain an overview of your website's content.

In the following image, you'll find an XML sitemap of my blog. Here you can see that the sitemap lists single posts, pages and documents (images etc.). This sitemap was created automatically by the plugin Yoast SEO, which I use in my WordPress installation. 

XML sitemap Yoast SEO

Why is an XML sitemap so important?

As mentioned above, as a WordPress user or generally as a website operator, you're not obligated to create an XML sitemap for search engines. After all, search engines can index your website without a sitemap. Without an XML sitemap, however, the crawlers might not find all the individual pages or documents on your site.

With the help of a suitable WordPress sitemap you, as it were, facilitate the work of the crawlers. Because the sitemap lists all content to be indexed. There's still no guarantee that the search engine in question will actually index all content, however. Each search engine decides this for itself and according to its own criteria (for example, based on the quality of the content).

Below you can see what an XML sitemap for WordPress posts could look like:  

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

The advantages of a WordPress sitemap at a glance

  • You can specifically submit all individual pages of your website
  • You can monitor the submission and indexing at Google and Bing
  • You can also submit pages that are not directly accessible
  • You make it easier for search engines to index all your pages and content

Tip: You should regularly check the XML sitemap of your WordPress site regularly and check whether only the contents are listed which are intended for this by you. Because the sitemap is visible for every user. If, for example, content has not been excluded here that is not (or not "yet") intended for the public, it can be accessed via the sitemap. 

You can exclude single sites or -contributions from the indexation with the help of SEO-Plugins like for example Yoast or Rank Math directly in the Gutenberg-Editor.

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools
You could exclude this post from indexing by unchecking the box.

How to create a sitemap in WordPress

To create a sitemap in WordPress you don't have to have any special knowledge. There are a lot of useful Plugins available for you. Today I would like to show you two of the most popular SEO-Plugins - Yoast SEO and Rank Math - as well as illustrate in a few steps how simple the creation of the XML sitemap is. 

The good news right from the start: Both plugins create a sitemap for you during the installation, completely automatically. All you have to do is decide which content should be included in or excluded from the sitemap.  

Yoast vs Rank Math

If you want to learn more about both Plugins Yoast SEO and Rank Math, I recommend you read the article "WordPress SEO-Plugins" by Dominik Stein.

Yoast SEO

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

The Yoast SEO Plugin is available in a free and paid version. For the creation of a sitemap and all basic settings for search engine optimization, the free version is completely sufficient. 

In the Yoast SEO settings, you can enable or disable the creation of XML sitemaps under GeneralFeatures. By default, this option is set to "On".

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

Under the item "Taxonomies" (post types) you can define which contents or sites are listed by Yoast SEO in the XML sitemap. This includes categories, keywords and formats. 

Under Appearance in SearchTaxonomies, you can select these post types or exclude them from appearing in search results. 

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

As a rule, it's always recommended to exclude categories and other special formats from the search results. Quite simply to avoid "duplicate content". 

Rank Math

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

The SEO Plugin Rank Math is also available free of charge and is mainly used for the search engine optimization of your websites. In addition to the numerous functions, you will also find settings for the XML sitemap. 

Under the menu item Sitemap SettingsGeneral you can choose from all setting options. Just like with Yoast, you can define which content should be listed in the sitemap and which should not. In addition, you will find a direct link here, which you can use to call up your sitemap. 

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

With Rank Math, it's also possible to exclude individual taxonomies (post types) from being listed in the WordPress sitemap with just a few clicks (categories, keywords). To do this, simply turn the corresponding slider on or off. 

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

In addition, you have the option to exclude posts, pages, and shortcodes as a rule under the item "post types". However, you should only ever exclude posts and pages in individual cases and as needed because his type of content should usually always be included in an XML sitemap. 

Important to know

The path to the sitemap can be different depending on Plugin, which you use for the generation. With Yoast SEO and Rank Math the paths are the same. This means you can access your WordPress sitemap via the following path: https://DEINE-URL/sitemap_index.xml

XML sitemap feature in WordPress 5.5

The next major update to WordPress 5.5 brings a sitemap feature to WP Core. So to create a basic sitemap, you no longer need a separate Plugin as of WP 5.5. However, the new built-in sitemap feature doesn't provide an interface to set additional preferences, such as excluding certain posts or sites . So for more complex sitemap requirements, Plugins will continue to provide the appropriate solutions for now. More information about the new feature can be found on the official WordPress blog.

Submit your WordPress sitemap to Google and Bing

Once you have created your XML sitemap as described above, you can submit it directly to Google and Bing. This has the advantage that you can monitor the indexing status of your website at any time and view the corresponding statistics. 

Google Search Console

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

In Google, you can submit your sitemap via the Google Search Console. Once you have verified your site , you need to click on the item "Sitemaps", which you can find under Index. 

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

All you have to do is enter the path to your sitemap and then click on the "submit" button. It can take several days for the submission to be checked and until you're able to view the statistics. 

In the example above you can see the submitted sitemap for my blog. By clicking on the "Diagram icon" you can see detailed statistics. If there were problems with indexing one or more URLs, for example, it would be displayed here.

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

Bing Webmaster Tools

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

In the Webmaster Console of Bing you also have the possibility to submit your sitemap. To do this, you have to submit your website, just like in the Google Search Console. Afterwards, you can submit or submit the sitemap under the item "Sitemaps", which you can find directly on the dashboard. 

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

With one click on the button "Submit sitemap" you can enter the corresponding path and confirm it by clicking on the button "Submit". 

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

After the WordPress sitemap has been processed successfully, you'll also have an overview of your site in Bing Webmaster Tools in the form of statistics or website activity. 

Creating an XML Sitemap in WordPress: Advantages, Plugins & Webmaster Tools

Final thoughts

Although creating a sitemap isn't mandatory, it's still beneficial to submit one to at least the most important search engines like Google and Bing for the reasons mentioned above. This way you always have control over your site and have access to useful statistics. 

With the help of the two plugins mentioned above, you'll complete the entire task within a few minutes. Even beginners in this field should have no problem finding their way around. 

To make sure that nothing goes wrong in the long run, you should check your sitemap at regular intervals to any find faulty URLs or exclude URLs not intended for everyone from indexing. 

Do you have any further questions or feedback?

Feel free to use the comment function. You want to be informed about new articles on WordPress , Online Marketing & Co. Then follow us on Twitter, Facebook or via our newsletter.

Sven Scheuerle - Independent freelancer and passionate affiliate marketer - has been working in online marketing for many years. He is also a blogger and regularly posts on his blog BLOGGiraffe.de about self-employment in online business.

Related articles

Comments on this article

Post a comment

Your email address will not be published. Required fields are marked with *.