Skip to content

Everything you need to know about WordPress Sitemaps

Alejandro Frades
Todo lo que debes saber sobre los Sitemaps de WordPress

In the vast digital universe, site maps play a crucial role in giving visibility to your website on search engines. If you’re working with WordPress, it’s essential to understand how a WordPress sitemap is generated and used. In this article, we’ll explore the various ways to generate an XML sitemap, how to present it to search engines, and why it’s essential for your site.

Understanding the WordPress sitemap and its importance

A sitemap or site map is essentially a file that contains all the URLs of your website that you want search engines to crawl and index. It acts as a roadmap for search engines, allowing them to understand the structure of your website and find relevant content faster. In addition, it is especially useful for large and complex websites with many internal pages.

Defining the URLs to be included and excluded in the sitemap

Not all the URLs on your site should be in your sitemap. Generally, you want to include pages that are crucial to your site and provide value to users. On the other hand, pages such as terms and conditions, privacy policies, or author pages may be excluded from the sitemap.

Best plugins for creating XML sitemap in WordPress

Here is a comparative table of some of the best plugins to generate a sitemap in WordPress. This table will help you understand how each plugin stands out in different relevant aspects.

Plugin Ease of Use Customization Search Engine Compatibility Support and Updates
Yoast SEO High (Intuitive interface) Medium (Allows to exclude certain pages) High (Compatible with all major search engines) High (Dedicated support and frequent updates)
Google XML Sitemaps High (Automatic sitemaps creation) High (Numerous configuration options) High (Especially optimized for Google, but also compatible with other search engines) Medium (Less frequent updates)
Rank Math SEO High (Easy configuration) High (Advanced customization options) High (Compatible with all major search engines) High (Efficient customer support and constant updates)
All in One SEO Medium (May require some SEO knowledge) High (Allows detailed settings) High (Compatible with all major search engines) High (Broad support and regular updates)

The use of SEO plugins can help you generate a sitemap in WordPress and facilitate the indexing of your pages by search engines.

Manual generation of an XML sitemap in WordPress

While there are various plugins that facilitate the generation of a XML sitemap in WordPress, understanding how to do it manually can be useful. Below, we will guide you step by step through this process.

Step 1: Create an XML file

First, you’ll need a text editor like Notepad or Sublime Text to create an XML file. You can start the file with the following code, which indicates that it is an XML file and specifies the version and encoding.

<?xml version="1.0" encoding="UTF-8"?>

Step 2: Add the basic structure of the sitemap

Next, you need to provide the basic structure of the sitemap. At this point, your file should look like this:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
</urlset>

Step 3: Add URLs to the sitemap

For each page you want to add to your sitemap, you’ll need to add a URL structure. This is where you specify the location (URL) of the page, the last time it was modified, how often it changes, and its priority. Here’s an example of how to do it:

<url>
  <loc>http://yoursite.com/page/</loc>
  <lastmod>2023-07-18</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.8</priority>
</url>

Repeat this process for each page you want to include in your sitemap.

Step 4: Save and upload your sitemap

Once you’ve added all the pages, save the file as ‘sitemap.xml’. Then, upload this file to the root of your website using an FTP client or the file manager of your hosting provider.

Step 5: Verify your sitemap

Finally, you can verify your sitemap by visiting ‘yoursite.com/sitemap.xml’ (replace ‘yoursite.com’ with your site’s URL). If everything has been done correctly, you should see your sitemap with all the pages you’ve included.
This manual process can be more laborious than using a plugin, but it gives you complete control over your sitemap and is a valuable skill for any webmaster.

Submitting your WordPress XML sitemap to search engines

How to submit an XML sitemap to Google

To submit your sitemap to Google, you’ll need to use Google Search Console. After verifying your website, go to “Sitemaps” in the side panel, enter the URL of your sitemap and click “Submit”.

Submitting a WordPress XML sitemap to Bing

For Bing, the process is similar. You’ll need to use Bing Webmaster Tools, input the URL of your sitemap, and click “Submit”.

Limitations and Recommendations Regarding the Number of URLs in a Sitemap

According to Google’s standards, a sitemap should not have more than 50,000 URLs and should not be larger than 50MB. However, for better management, it is recommended that a sitemap contain around 1,000 URLs.

Comparison between XML and HTML Sitemap in WordPress

Both XML and HTML sitemaps have their own advantages. While an XML sitemap is designed for search engines and is crucial for SEO, an HTML sitemap is created for users, allowing them to navigate through your website more effectively.

Frequently Asked Questions

Is it necessary to have a sitemap on my WordPress site?

Yes, having a sitemap can help improve your website’s indexing on search engines and can enhance its visibility on the SERP.

Can I exclude certain pages from my WordPress sitemap?

Yes, you can exclude certain pages from your sitemap using sitemap plugins like Yoast SEO or XML Sitemap.

How can I check if my sitemap has been successfully submitted to Google?

You can check the status of your sitemap in Google Search Console. If it has been processed correctly, you should see a “Success” status next to your sitemap.

Is it possible to create specific sitemaps for videos, photos, and other multimedia content?

Indeed, it’s not only possible, but it’s also highly recommended to create specific sitemaps for certain types of multimedia content, like videos and images, on your WordPress website. These sitemaps allow search engines to understand and index this type of content more efficiently, which can improve your site’s visibility in search results.

Autor
Alejandro Frades
Marketing Specialist
The mind behind Modular's social content. Always on top of the latest trends to take advantage of them and make the digital world more enjoyable and entertaining.

Subscribe to our Newsletter about the web world