Enable XML Sitemaps
Go to SEO, XML – HTML Sitemap.
Check the blue iOS toggle to enable the feature.
Then, check Enable XML – HTML Sitemap and Save changes.
You have to flush permalinks in order to work properly.
To do that, go to Settings, Permalinks.
You can view your xml sitemaps by clicking on the button View your sitemap from XML – HTML sitemap page.
Or, by typing, https://example.com/sitemaps.xml/ in your browser.
Note that we automatically redirect other common xml sitemaps URLs like:
Configure your XML Sitemap
By default, your XML Sitemap contains your posts, pages, products, post categories and post tags (if available).
In Post Types and Taxonomies tabs, check what you want to include in your sitemap.
Click save and browse your sitemap to see the changes.
It may be necessary to flush your permalinks.