How to Create a Sitemap in WordPress (3 Easy Steps)

Create Sitemap in WordPress

Sitemap is like an archive page. While archive page helps readers to find all posts in one page, sitemap helps search engine bots to find all links in one place so that bots can index them quickly.

Search engines will index your posts/pages even if your site doesn’t have any sitemap. But it will take much time when you don’t have any sitemap. Sitemap also makes sure that all of your important links get indexed by Search engines.

So having a sitemap is very crucial for a blog/site. If you are still wondering what sitemap is, here is the answer for you.

What is Sitemap in WordPress?

Sitemap is an XML file that contains a list of pages of a site accessible to search engine bots. It tells search engines about the organization of a site content. WordPress XML Sitemap tells the search engine about the pages in your site, their relative importance to each other, and how often they are updated.

Creating a sitemap in WordPress is extremely easy. You can do it by using a plugin. In this post, I will be sharing how to create a sitemap in WordPress by using Yoast plugin.

How to Create a Sitemap in WordPress

Follow these simple steps to generate a sitemap in WordPress.

Step #1: Install the Yoast SEO Plugin

At first, you need to install Yoast SEO plugin. It is the best WordPress SEO plugin. I’ve already written about setting up Yoast SEO plugin.

If you are already using Yoast SEO plugin, you can skip this step.

To install the plugin, go to WordPress Dashboard > Plugins > Add New and search for the ‘Yoast SEO’. The very first result will be Yoast SEO. Then click on “Install Now” button.

Install Yoast SEO Plugin

On the next page, click on “Activate Plugin” link.

Step #2: Create XML Sitemap

Once you’ve activated the plugin, a new tab “SEO” will be added on your WordPress admin panel. Just hover your cursor on “SEO” tab and click on “XML Sitemaps”.

Yoast XML Sitemaps

Yoast SEO generates sitemaps automatically. Just make sure XML sitemap functionality is enabled (1). You can check your XML sitemap by clicking on “XML Sitemap” (2).

Enabled XML Sitemap

Your sitemap will look like this.

RTB XML Sitemap

Showing this means your sitemap has been created successfully.

Sometimes, it may show a 404 Not found error. You can solve this problem by following this post.

Step #3: Configure XML Sitemap

Default settings of Yoast SEO for XML Sitemap are quite good. You can go with the default settings. However, you can tweak a few things to make your sitemap better.

The first tab is “General”. You don’t need to do anything here. Click on the second tab “User sitemap”. Here you can enable or disable author/user sitemap. I prefer going with the default setting which is disabled.

If you are running a blog with multiple authors, you may consider enabling the user sitemap.

user sitemap

The next tab is “Post Types” from where you can select which types of posts to include in the sitemap. By default, Yoast includes Posts & Pages in the sitemap. You will also find custom post types here. I prefer not to include custom post types in the sitemap.

Post Types Sitemap

From the next tab “Excluded Posts”,  you can exclude posts/pages from the sitemap by entering Post IDs with a comma. Read: How to Find Post ID.

Excluded Posts Sitemap

The last tab is “Taxonomies”. By default, Yoast includes categories and tags in the sitemap. I prefer not to include categories and tags in the sitemap. But it totally depends on your SEO plan.

Taxonomies sitemap

Then click on “Save Changes” to save your settings.

ALSO READ: How to Edit & Optimize WordPress Robots.txt File for SEO

Other WordPress Plugins to Create Sitemap

If you don’t want to use Yoast SEO or you are using another plugin similar to Yoast SEO, you can use other WordPress plugins to generate sitemaps for WordPress. Here is a list of 3 sitemap generator WordPress plugins.

1. All in One SEO Pack

With over 30 million downloads, All in One SEO Pack is considered as the best Yoast SEO alternative. It has almost every feature of Yoast SEO.

Like Yoast SEO, it lets you generate sitemaps for your WordPress site. This plugin also notifies Google and Bing about your sitemap. You can include or exclude post types, taxonomies, date archive pages, author pages from sitemap by using this plugin.

2. Premium SEO Pack

Premium SEO Pack is relatively new WordPress SEO plugin. But it’s growing fast. It offers a variety of SEO features to optimize WordPress site for speed and SEO.

It automatically generates multiple sitemaps for posts/pages, images, videos. It also creates location sitemap. This plugin is a good choice who wants to try a premium plugin.

3. Google XML Sitemaps

This is a dedicated sitemap plugin that generates a special XML sitemap. It helps search engines like Google, Bing, Yahoo and Ask.com to better index your WordPress blog.

Google XML Sitemap is rated as the best WordPress plugin with a rating of 4.9 out of 5. If you want to use a separate plugin to generate WordPress sitemaps, you can consider using this plugin.

Submitting Sitemap to Search Engines

Once you’ve created a sitemap for your WordPress blog, it’s time to tell search engines about your sitemap.

Though search engine bots are smart enough to find out your sitemap, submitting sitemap allows you to see different stats of your site which is very beneficial. You can read these two posts to submit your site to Google and Bing.

Over to You

I hope this post helped you to create a sitemap for your WordPress blog. If you found any difficulties while creating a sitemap, let us know via comment.

If you are using another plugin for sitemaps, share your experience with us.

However, if you found this post useful, help me by sharing this post on Facebook, Twitter or Google+.

11 responses to “How to Create a Sitemap in WordPress (3 Easy Steps)”

  1. Aamir Saleh Avatar

    Hi Istiak,

    You Have explained Very Greatly, i Like your way of explaining with step by step guide.

    Yoast Plugin Made it Very for simple and easy for Begginer SEO, before few years ago i used to submit sitemap, manually. :)

  2. SM Nuruzzaman Avatar

    Hi Istiak, your nice post just taught me how to create my blog’s sitemap automatically. Many many thanks bro.

    1. Istiak Rayhan Avatar
      Istiak Rayhan

      Glad I could help. Let me know if you need any other bits of help.

  3. Kalpana Sharma Avatar
    Kalpana Sharma

    Hi Istiak,

    Thank you for writing such a detailed article. This is really very helpful. I have installed Yoast SEO Plugin on my blog and this is just an awesome plugin which not only creates sitemap but also provides and guide you about the SEO score of your post.
    Thanks for sharing such in-depth article with us. ALL THE BEST..!!!

    1. Istiak Rayhan Avatar
      Istiak Rayhan

      Yes, Yoast SEO is the ultimate SEO solution for WordPress. You can check this complete setup tutorial of Yoast SEO.

  4. Palash Avatar
    Palash

    Hi, thanks for sharing this message. Currently, I am using Google Sitemap XML plugin which is good working for my blog.

    1. Istiak Rayhan Avatar
      Istiak Rayhan

      Yes, it’s a good plugin. But if you are using both Yoast SEO and Google Sitemap XML plugin at a time, I’d recommend you to use Yoast only.

  5. deepak Kumar Avatar
    deepak Kumar

    What will be its impact on SEO if I don’t submit the Sitemaps to Google Webmastertools?

    1. Istiak Rayhan Avatar
      Istiak Rayhan

      Submitting sitemap to Google Search Console won’t boost your rankings. But it will help you find errors on your site.

  6. Naruto forums Avatar
    Naruto forums

    I wanted to create an XML sitemap for Luffyforums’ blog and i guess this plugin will do wonders for me. Thanks for sharing.

  7. Pawan Avatar

    That was a nice tutorial, Thanks for sharing. I think Google XML Sitemaps is a good plugin for the job.

Leave a Reply

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