How to create an XML sitemap in WordPress: Beginners Guide

The sitemap is the most important for search engines to crawl to your website. WordPress sitemap can help a positive knock-on your website. This article will show you how to create an XML sitemap in WordPress and how to submit a sitemap to search engines.

What is an XML sitemap?

An XML sitemap is just a list of URLs to all your website content in an XML. Search engines bot can easily crawl your website and index all your content.

When an XML sitemap is submitted to search engines, they automatically crawl your website and index all posts and pages—no need to the manual index to your single post.

An XML sitemap targeted to all search engines, not people or users. When you create new content or change existing content, sitemap called search engines about your website changes.

Sitemap help to index large website with a lot of content and pages. All of the search engine bots are significantly faster crawling and indexing all pages.

A sitemap is a technique to index your website very quickly. It does not only list all our pages but also tells search engines which pages are the most important than other pages.

How to create an XML sitemap in WordPress?

There are a lot of methods available to create an XML sitemap for your WordPress Website. We will show you three easy ways to creating an XML sitemap. You can follow any single method for your site as you like.

Creating an XML sitemap using the Yoast SEO plugin.

This first step will show you create an XML sitemap in WordPress using the Yoast SEO plugin.

Go to your WordPress admin dashboard admin area and go to plugins > Add new button from the navigation bar and search for ‘Yoast.’ Then you will find Yoast SEO plugin. Click on the install and activate the button.

Now click on the Yoast SEO from the navigation menu. You can see three different tabs such as Dashboard, Features, and webmaster tool on this page.

Yoast SEO

Next, click on the ‘Features’ tab and scroll down to the ‘XML sitemap.’ Click on the question mark icon to see your website sitemap. Finally, successfully enable XML sitemap for your site.


After that, click on the ‘see the XML sitemap’ to view your XML sitemap generated by Yoast Plugin. The plugin will always update to the XML sitemap.

Creating an XML sitemap using All in One SEO Pack

Go to your WordPress Admin area and go to the plugin > Add new button from navigating menu. Search for ‘All in one SEO pack.’ Click on the install and activate this plugin.

XML sitemap also features available in All in one SEO pack free version. Click on the AIO SEO > feature manage. On this page, you will find an XML sitemap, simply press on the activate button.

After activating, you will get an XML sitemap under the All in one SEO tab. Next, XML sitemap setting page, you can configure all options like post types, taxonomies, and more.

Creating an XML sitemap using an online XML Sitemap Generator.

WordPress sitemap allows to generator tool for creating an XML sitemap.

Go to the XML sitemap Generator site. Click on the online XML Sitemap Generator. On the next page, you will find the required form like website Address, Email, Date, and more.

When you complete this form, then press on the generate sitemap. Now you will get your sitemap. Download the sitemap file and upload it to your WordPress site and connect to search engines.

How to submit a sitemap to the Google Search console?

Google search console is a free tool provided by Google to submit your sitemap to the search console that helps to quickly index your brand new website with all posts and pages.

First, go to the Google search console website and create an account. After creating an account, you will find a property type option. You can select a domain or a URL prefix. We recommended the URL prefix because it is easy to setup.

search console

Enter your website URL in the prefix area and press the continue button. After that, you will find the verified ownership of the website with three methods. We recommend the HTML tag method.

Copy the content inside code on the screen red mark area of the image. Then you need to go to the WordPress dashboard admin area.

If you are using the Yoast SEO plugin, you can easily verify your website. Simply go to the Yoast SEO > General setting. Next, you can find four tabs; click on the webmaster tool tab. On this page, you can see the Google verification code option below.

Simply paste the code previously you copied from the search console. And click on the save changes button.

Now, back to the google search console page and click on the verify button. Then google checks your verification code and add your site to the Google search console account.

In the next step, you need to submit an XML sitemap for indexing your website.

Go to your search console account dashboard area and click on the sitemaps from the navigation bar. Then click on the add new sitemap option and paste your sitemap here. After that, click on the submit button. Now your XML sitemap adds to the google search console.

After submitting a sitemap, Google automatically crawls your website. You can check how many pages indexed Google from search console account.

You can also submit the sitemap to other search engines using this process. All of the methods are similar.

Final Thoughts

An XML sitemap is the most important for indexing your website to search engines. When submitting an XML sitemap, search engines automatically crawl your website and index all your posts, pages. No need to manually indexing your posts.

In this tutorial, we hope to help you submit an XML sitemap in search engines if you face any problem, comment below.

Share your friends

Leave a Comment