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.
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.
- Post format
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.
- This sitemap tells us there are 59 URLs, each one representing a single blog post.
- Clicking on a blog post (2) will take you directly to that post.