Creating a Sitemap

excerpt from: https://learn.wordpress.org/lesson-plan/building-a-sitemap-for-a-site/ Since the release of WordPress 5.5, sitemaps are now automatically generated for your website. The default sitemap for any WordPress site running 5.5 or later is located at [insert your domain name here]/wp-sitemap.xml. You can also access the default sitemap using [insert your domain name here]/sitemap.xml Before you look at your sitemap,…

Posted

in

by

Tags:

excerpt from: https://learn.wordpress.org/lesson-plan/building-a-sitemap-for-a-site/

Since the release of WordPress 5.5, sitemaps are now automatically generated for your website. The default sitemap for any WordPress site running 5.5 or later is located at [insert your domain name here]/wp-sitemap.xml.

You can also access the default sitemap using [insert your domain name here]/sitemap.xml

Before you look at your sitemap, make sure that search engines can search your index. If this is not selected, you might get a 404 error.

Go to Settings -> Reading -> Make sure Search Engine Visibility is not selected.

Reading Settings Dashboard with search engine visibility checkbox highlighted
Reading Settings Dashboard

Now go to your browser and type in [insert your domain name here]/wp-sitemap.xml] to look at the sitemap WordPress automatically generates for you.

The type of content you have on your site will determine what is displayed on your sitemap. Your sitemap may look like the one below.

This sitemap tells us that our site has 6 URLs, each representing a type of content with additional metadata about that content.

  1. Posts
  2. Pages
  3. Categories
  4. Tags
  5. Post format
  6. Users
xml sitemap generated by WordPress
WordPress XML sitemap

Let us have a look at the first URL on the list (Posts). When you click on the link, it will give us more information (metadata) about the Posts on our website.

  1. This sitemap tells us there are 59 URLs, each one representing a single blog post.
  2. Clicking on a blog post (2) will take you directly to that post.
Posts XML sitemap with 59 URLs
Posts XML sitemap

Comments

Leave a Reply