Skip to main content
WordPress made easy with the drag & drop Total WordPress Theme!Learn More

How to Create & Add Your WordPress Sitemap

Last updated on:

Websites come in all different sizes. And the larger a website, the more difficult it becomes to navigate through the website without effective navigation menus. Now that’s from a human perspective. From the perspective of a crawler (a bot sent by search engine to check out your website), the same is very much applicable.

A sitemap is very similar to a real map. Consider it an e-map for search engines, it helps search engines find and access every recces of your website easily.

Why Are They Important ?

  • Your website is genuinely large or has a lot content under many different categories. When websites become larger they make it more difficult for search engines to navigate and crawl through newer content.
  • If you have a lot of content which has been poorly linked to each other, if you have any content that is isolated from your website. This content, which otherwise has no reference is basically an orphan and has no means of access for a visitor. Let us for a second assume, that this isolated content lacks any incoming links from other websites as well. In such a situation, if search engines do not provide a link for them, they will be totally isolated with no traffic what so ever. A sitemap will cover non-referenced, isolated content on your website.
  • Sitemaps also take into account websites’ rich media information and meta data. This helps search engines understand what your website is all about and also the importance of particular URLs on your website relative to other URLs on the same site.
  • Google also informs us that sitemaps may aid the websites themselves, although a sitemap does not guarantee that every web page is indexed.

In short, it is definitely better to have sitemaps than it is, not to have them. They make a search engine’s job a bit easier and most web admins who submit their sitemaps tend to benefit from it more often than not.

How Do You Create A Sitemap ?

You can either create it using a dedicated plugin for sitemaps or you can use a search engine optimization plugin. Given that a great number of WordPress bloggers use Yoast SEO (previously know as WordPress SEO), I’ll start by discussing how we can create and submit sitemaps using Yoast SEO.

Yoast SEO

If you are using a search engine optimization plugin either Yoast SEO or something similar, you normally wouldn’t have to do anything. Sitemap generation is  typically enabled by default.


It isn’t sufficient to merely create the sitemaps – search engines need to be notified of the change. Yoast makes this easy, since the plugin automatically pings Google and Bing.

Yoast SEO also produces an XML stylesheet which can be read as a HTML file. The importance of this lies in the fact that you can actually verify that the right URLs are represented and included with appropriate priority in the sitemaps.


It is important to ensure that your sitemap is frequently updated, or at least as frequently as you publish new posts in the very least. From the XML stylesheet above, you’ll notice there is a priority rating for each URL, a frequency for sitemap generation with the number of images and the last change date specified.

All of this information is very relevant to your search engine rankings. For example, the freshness of your content including the amount of change on your website, the frequency of change and how old the content is. All three of these factors can greatly affect your site’s search engine rankings.

You can read this excellent post on Moz about Google’s policy when it comes to freshness of content. Keeping your content updated and relevant coupled with frequent generation of sitemaps is very effective at ensuring that your content never looses ground on search rankings because the content may be considered stale.

XML Sitemap Generator

Another plugin that I would like to introduce is the XML Sitemap Generator. On the off chance that you do not use Yoast SEO and your current search engine optimization plugin does not provide a sitemap. This plugin creates a sitemap which is stored and made available to search engine crawlers. As you can see from the screenshot below, the website’s sitemap is stored on


XML Sitemap Generator notifies Google and Bing automatically just as the Yoast SEO plugin does. The sitemap’s URL is added to the robots.txt file which the first destination of search engine bots to find more information about the website (and in case you were wondering, the robots.txt file is basically what tells search engines which URLs not to crawl, where as a sitemap is designed to do the exact opposite).

With XML Sitemap generator plugin, you can specify which of the following is included in your sitemap. Similarly, you can also exclude certain specific posts and certain categories:

  • Homepage
  • Posts
  • Pages of multi page posts
  • Static Pages
  • Categories
  • Archives
  • Author Pages
  • Tag Pages

Apart from the ability to decide which parts of your website gets included as part of your web sitemaps, you can also assign specific values of priority and frequency of sitemap generation for each of the aforementioned aspects of a WordPress website.

Manual Sitemaps

Both plugins automatically submit your sitemap to search engines, so that you do not have to do it. Now the chances are, that this will work perfectly. But for some reason if they do not and your luck is as rotten as mine ;), then you can always download a copy of your sitemap and upload it to the Google Search Console or you can do it from your Google webmaster account. And if you’d rather not use a plugin for sitemap generation, you can use this online Sitemap Generator.

It is a fairly simple process, but continually generating sitemaps and submitting them manually is time consuming. It is a much more productive use of your time to employ one of the two plugins mentioned in this post to create and frequently update your sitemaps. This will keep your website always within the scope of Google’s search lens (and give you more time for content creation!).

Added Benefits

Many websites now engage in content syndication and some even actively steal content and post it on their websites without any formal permission from the site owner (also called content scraping). Due to new changes incorporated in Google’s search algorithms, websites that copy content are punished rather harshly. This is a good thing – we just need to ensure that your website’s work is recognized as the original content generator.

Creating sitemaps as and when you publish new posts will enable you to do just that. No matter how many times you site’s content is stolen, Google’s search results will reflect the fact that any content stolen from your website, is rightfully yours.

Final Thoughts

There is ever more emphasis on developing better machine learning based algorithms, search engines like Google are literally getting smarter. But no matter how smart they get, a sitemap can always help the crawlers to act intelligently and it gives you some quantum of control over how seriously a search engine takes the different parts of your website. Cheers 🙂

Article by Vishnu author
Subscribe to the Newsletter

Get our latest news, tutorials, guides, tips & deals delivered to your inbox.


  1. Frederick

    Many thanks for the great article!

    The Yoast SEO plugin is quite a large plugin. XML Sitemap Generator gets my preference if you are just looking for an XML sitemap.

    • Vishnu

      Many people are already using Yoast SEO, at least many SEO conscious web admins. If on the other hand you aren’t using a plugin dedicated to SEO like Yoast’s and you’re looking to just create sitemaps XML – Sitemap Generator is definitely the better choice. It is certainly smaller plugin with a lot less in the way of functions to aid in SEO for WP sites.

  2. Apoorv Agarwal

    great artcle…really

  3. alivetear

    Thank you for that great article!

    The Yoast Search engine optimization wordpress plugin is a reasonably large wordpress plugin. XML Sitemap Generator will get my preference if you’re just searching for an XML sitemap.

Leave a Reply

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

Learn how your comment data is processed by viewing our privacy policy here.