Picture crafting the ideal blog post, yet it goes unnoticed because Google can’t find it. This is a common concern among website owners, but the fix is easier than you think. You need a method to inform search engines precisely where to look.
An XML sitemap serves as a navigational guide for your website. It directs Google to all your key pages, ensuring they are indexed and appear in search results.
At CanadaCreate, we utilize All in One SEO to automatically create our sitemaps. This guarantees that our content is discovered right after publication.
In this guide, we will clarify what an XML sitemap is and provide step-by-step instructions on how to create one in WordPress to enhance your search engine rankings.
What Is an XML Sitemap?
An XML sitemap is a well-organized file that functions as a comprehensive roadmap of your website, detailing all your vital pages in a format that search engines can easily read and interpret.
If your website were a library, an XML sitemap would be the card catalog that assists librarians (search engines) in locating which books (pages) are available and their locations.
The idea isn’t entirely new. In the early 2000s, many websites featured HTML sitemap pages containing links to all their essential content, designed to help human visitors navigate the site more easily.
XML sitemaps originated from the concept of organizing website content but are tailored for a different audience. They are specifically crafted to facilitate communication with search engine crawlers such as Googlebot and Bing’s crawler.
Your XML sitemap provides search engines with several key details:
- The pages available on your website
- The last time each page was updated
- The frequency with which you typically update certain pages
- The relative importance of each page in relation to other content on your site
Many website owners overlook this: XML sitemaps do not directly enhance your search rankings. However, they simplify the process for search engines to discover and index your content.
When search engines can easily locate and comprehend your pages, you are more likely to see those pages featured in search results, leading to better SEO performance and increased organic traffic.
The Importance of Having an XML Sitemap
XML sitemaps are a vital component of your website’s search engine optimization (SEO) strategy, particularly in aiding search engines to discover and interpret your content.
Search engines are highly intelligent, but they cannot read your mind. Without clear direction, they may overlook important pages on your site or take longer to locate them.
Crucial for New Websites
XML sitemaps are particularly beneficial when launching a blog or a new website. New sites often lack backlinks, making it harder for search engines to find your content organically.
This is why search engines like Google and Bing offer tools such as Google Search Console and Bing Webmaster Tools, enabling you to submit your sitemap directly. It’s akin to providing them with a VIP pass to navigate your entire website from the start.
Advantages for Established Websites
Even if your website has a solid foundation and good traffic, XML sitemaps continue to offer substantial benefits. They allow you to:
- Indicate which pages are most important for your business
- Inform search engines about sections that are frequently updated
- Ensure that deeper or less accessible pages are indexed
- Facilitate quicker discovery of new content
In our experience managing CanadaCreate and other sites, we have found that XML sitemaps can help pages get indexed within hours instead of days or weeks. This expedited indexing can result in faster organic traffic growth.
What You’ll Learn Next
Now that you recognize the importance of XML sitemaps, let’s explore the practical steps. We will guide you through three effective methods to create an XML sitemap in WordPress, ranging from user-friendly plugins to more advanced techniques.
We will also guide you on how to submit your sitemap to major search engines and share effective strategies to enhance your sitemap’s contribution to your website’s growth.
- How to Create an XML Sitemap in WordPress Without a Plugin
- How to Create an XML Sitemap in WordPress Using AIOSEO
- How to Create an XML Sitemap in WordPress Using Yoast SEO
- How to Submit Your XML Sitemap to Search Engines
- Using XML Sitemaps to Enhance Your Website’s Growth
- Video Tutorial
- Common Questions About XML Sitemaps
- Additional Resources
Method 1: Creating an XML Sitemap in WordPress Without a Plugin
This method is quite basic and has limited features.
Prior to August 2020, WordPress lacked built-in sitemaps. However, with the release of WordPress 5.5, a basic XML sitemap feature was introduced.
This feature enables you to automatically generate an XML sitemap in WordPress without the need for a plugin. To check this, simply open a new browser tab and enter your domain name followed by wp-sitemap.xmlIt will appear as follows:
WordPress provides a default XML sitemap.
This XML sitemap feature was introduced in WordPress to ensure that new WordPress websites can take advantage of the SEO benefits offered by XML sitemaps.
However, it has limited flexibility, making it difficult to manage what content is included or excluded from your XML sitemaps. Additionally, it does not have advanced features such as instant notifications to search engines when new content is published.
Fortunately, nearly all leading WordPress SEO plugins include their own sitemap functionality. These plugins offer improved sitemaps, allowing you to customize which content is included or excluded from your WordPress XML sitemaps.
Method 2: Creating an XML Sitemap in WordPress Using AIOSEO
The simplest way to create an XML sitemap in WordPress is by using the All in One SEO (AIOSEO) plugin.
This plugin is the top choice for WordPress SEO, providing a sitemap generator along with a comprehensive suite of tools to optimize your blog posts for search engines.
First, you need to install and activate the All in One SEO plugin. For detailed instructions, refer to our step-by-step guide on installing a WordPress plugin.
The sitemap feature is included in the free version of AIOSEO. To access advanced features like news sitemaps and video sitemaps, you will need to upgrade to the Pro version.
After activating the plugin, navigate to the All in One SEO » Sitemaps section to check your sitemap settings.
By default, All in One SEO automatically enables the Sitemap feature and replaces the standard WordPress sitemaps.
You can click the ‘Open Sitemap’ button to preview how it looks. Alternatively, you can view your sitemap by opening a new browser tab and entering sitemap.xml at the end of your website’s URL. It should appear as follows:
As a beginner, you don’t need to make any changes, as the default settings are suitable for all types of websites, blogs, and online stores.
However, you have the option to customize the sitemap settings to specify what content you want to include in your XML sitemap.
Simply scroll down to the ‘Sitemap Settings’ section.
This section allows you to manage sitemap indexes and choose which post types and taxonomies (like categories and tags) to include or exclude. You can also enable XML sitemaps for date-based and author archives.
All in One SEO automatically incorporates all your WordPress content into XML sitemaps. However, if you have standalone pages such as a contact form, a landing page, or Shopify store pages that are not integrated with WordPress, you may need additional steps.
AIOSEO is the only plugin that allows you to add external pages to your WordPress sitemap. Simply navigate to the ‘Additional Pages’ section and enable it. This will display a form where you can include any custom pages you wish.
Just enter the URL of the page you want to add and set a priority, where 0.0 represents the lowest priority and 1.0 the highest. If you’re uncertain, we suggest using a priority of 0.3.
Next, select the update frequency and the last modified date for the page.
If you need to add more pages, simply click on the ‘Add New’ button.
Remember to click the ‘Save Changes’ button to ensure your settings are saved.
Excluding Specific Posts and Pages from Your XML Sitemap
All in One SEO provides the option to exclude any post or page from your XML sitemaps. You can do this by accessing the ‘Advanced Settings’ section.All in One SEO » Sitemapspage.
To exclude a post or page from your XML sitemaps, set it to no-index and no-follow. This is ideal for content you wish to keep out of search results, such as ‘Thank You’ pages, privacy policies, or admin pages.
Edit the post or page you want to exclude and scroll down to the AIOSEO Settings box located below the editor.
Next, switch to the Advanced tab and check the boxes for the ‘No Index’ and ‘No Follow’ options.
Creating Additional Sitemaps
All in One SEO enables you to generate extra sitemaps, including video and news sitemaps.
If you frequently embed videos in your blog posts or pages, you can create a video sitemap. This helps search engines showcase your posts in both general and video search results, complete with a video thumbnail.
You can also create a News sitemap if you operate a news website and wish to feature in Google News search results.
Simply navigate to All in One SEO » Sitemaps and select the Video Sitemap or News Sitemap tabs to create these sitemaps.
Overall, AIOSEO is the top WordPress plugin, offering extensive flexibility and powerful features at an affordable price.
Method 3: Creating an XML Sitemap in WordPress with Yoast SEO
When using the Yoast SEO plugin for WordPress, it automatically enables XML sitemaps for your website.
Begin by installing and activating the Yoast SEO plugin. For detailed instructions, refer to our comprehensive guide on installing a WordPress plugin.
Once activated, navigate to the SEO » General section and select the ‘Features’ tab. Scroll down to find the ‘XML Sitemap’ option and ensure it is enabled.
Then, click the ‘Save Changes’ button to apply your modifications.
To confirm that Yoast SEO has generated an XML sitemap, click the question mark icon next to the ‘XML sitemaps’ option on the page.
After that, click on the ‘See the XML Sitemap’ link to access your live XML sitemap created by Yoast SEO.
Alternatively, you can locate your XML sitemap by opening a new browser tab and entering sitemap_index.xml at the end of your website URL. For instance:
Yoast SEO generates multiple sitemaps for various content types, including posts, pages, authors, and categories by default.
Submitting Your XML Sitemap to Search Engines
Search engines are highly efficient at locating sitemaps. Whenever you publish new content, a notification is sent to Google and Bing to update them about changes in your sitemap.
To ensure search engines can easily find your sitemap, we recommend submitting it manually.
How to Submit Your XML Sitemap to Google
Google Search Console is a complimentary tool provided by Google that assists website owners in monitoring and managing their site’s visibility in Google search results.
By adding your sitemap to Google Search Console, you enable faster discovery of your content, even if your website is newly launched.
Begin by visiting the Google Search Console website and creating an account.
Next, you will need to select a property type. You can opt for either a domain or a URL prefix. We recommend selecting a URL prefix for easier setup.
Input your website’s URL and click the ‘Continue’ button.
You will then need to verify ownership of the website. Several verification methods will be presented, and we suggest using the HTML tag method.
Simply copy the provided code and navigate to the admin area of your WordPress website.
If you are using AIOSEO, it includes a straightforward webmaster tools verification process. Just go to All in One SEO – General SettingsNext, click on the ‘Webmaster Tools’ tab to enter the code from Google.
If you’re not using AIOSEO, you can add the code using the WPCode plugin, which is the safest and easiest method for incorporating code into your WordPress site.
First, install and activate the WPCode Free Plugin. For detailed instructions, refer to our step-by-step guide on installing a WordPress plugin.
After activation, navigate to the Code Snippets – Header & Footer page and paste the code you copied earlier into the ‘Header’ box.
Remember to click the ‘Save Changes’ button to apply your modifications.
Once you’ve added the code to your site using either method, return to the Google Search Console tab and click the ‘Verify’ button.
Google will search for the verification code on your site and then link it to your Google Search Console account.
Important: If verification fails, please clear your WordPress cache and try again.
Now that your website is added, let’s also include your XML sitemap.
From your account dashboard, click on ‘Sitemaps’ in the left column.
Next, enter the final segment of your sitemap URL in the ‘Add a new sitemap’ section and click the ‘Submit’ button.
Google will now include your sitemap URL in your Google Search Console.
It may take some time for Google to crawl your website. Eventually, you will be able to view basic statistics about your sitemap.
This data includes the total number of links Google discovered in your sitemap, how many of those links were indexed, the ratio of images to web pages, and additional insights.
How to Submit Your XML Sitemap to Bing
Similar to Google Search Console, Bing provides Bing Webmaster Tools to assist website owners in monitoring their site’s performance on the Bing search engine.
To submit your sitemap to Bing, visit the Bing Webmaster Tools website.
You will see two options for adding your site: you can import it from Google Search Console or add it manually.
If you have already added your site to Google Search Console, we recommend importing it. This will save you time as your sitemap will be automatically transferred.
If you opt to add your site manually, you will need to input your site’s URL and verify ownership.
Bing will prompt you to verify that you own the website and will provide several methods for you to do so.
We suggest using the Meta tag method. Simply copy the meta tag line from the page and navigate to your WordPress dashboard.
Next, install and activate the WPCode Free Plugin on your website.
After activation, go to theCode Snippets » Header & Footerpage and paste the code you copied earlier into the ‘Header’ box.
Remember to click the ‘Save Changes’ button to apply your updates.
Leveraging XML Sitemaps to Enhance Your Website
Now that you have submitted the XML sitemap to Google and Bing, let’s explore how to make the most of it for your website.
It’s important to note that while the XML sitemap doesn’t directly boost your search rankings, it helps search engines discover content, manage crawl rates, and enhance your website’s visibility in search results.
Monitor your sitemap statistics in Google Search Console. It will provide insights into crawl errors and the pages that have been excluded from theIndexing » Pagesreport (previously known as Coverage).
Below the charts, you can click on the various tables.
Here, you can scroll down to the ‘Why pages aren’t indexed’ section to see which specific URLs have been excluded or not indexed by Google.
Google may choose to ignore duplicate content, pages with minimal or no content, and pages that are blocked by your website’s robots.txt file or meta tags.
If you notice a significant number of excluded pages, it’s advisable to review your SEO plugin settings to ensure you are not inadvertently blocking important content.
For more information, check out our comprehensive beginner’s guide to Google Search Console.
Common Questions About XML Sitemaps
We receive numerous inquiries from our readers regarding the functionality and importance of sitemaps. Here are answers to some frequently asked questions.
1. How can I locate my XML sitemap in WordPress?
The simplest method to find your sitemap is to open a browser and append sitemap.xml or sitemap_index.xml to the end of your website’s domain name. You may see a list of sitemaps (such as categories, posts, and pages) instead of a direct list of URLs. This is normal and is referred to as a Sitemap Index.
2. What distinguishes an HTML sitemap from an XML sitemap?
An HTML sitemap is intended for human visitors and typically consists of a simple page that lists links to your posts and pages, making it easier for users to navigate your site. In contrast, an XML sitemap is specifically designed for search engine bots, containing code that aids crawlers in understanding the structure of your content.
3. Is a sitemap necessary for a small website?
While very small websites with excellent internal linking might be crawled without a sitemap, we highly recommend creating one regardless of your site’s size. Setting it up only takes a few minutes and ensures that Google is aware of your pages.
4. Can having an XML sitemap enhance my SEO rankings?
Although a sitemap does not directly improve your search rankings, it facilitates faster indexing of your content. Your content cannot appear in search results if Google hasn’t indexed it, making a sitemap a crucial element of your SEO strategy.
5. How can I exclude a page from my XML sitemap?
You can exclude a page by marking it as ‘noindex’ in your SEO plugin settings.
In AIOSEO, this can be done in the Advanced settings section while editing any post or page. Once a page is marked as noindex, it will be automatically removed from the sitemap, preventing search engines from wasting time crawling it.
Additional Resources
We hope this guide has helped you understand XML sitemaps and how to create one for your WordPress website. You may also find these additional resources useful:
- Comprehensive WordPress SEO Guide for Beginners (Step-by-Step)
- How to Submit Your WordPress Site to Google Search Console
- How to Register Your Website with Bing Webmaster Tools
- How to Verify if Your WordPress Blog Posts Are Ranking for the Right Keywords
- How to Request Google to Recrawl Your WordPress Site URLs
If you enjoyed this article, please subscribe to our YouTube Channel for WordPress video tutorials. You can also connect with us on Twitter and Facebook.

