How to add sitemap in WordPress with Yoast SEO plugin.
1.Login to your wordpress admin.
Install Yoast SEO plugin. https://yoast.com/help/xml-sitemaps-in-the-wordpress-seo-plugin/.
Click on seo.
2. Go to Features.
3. Click on XML sitemap and then click on. See the XML sitemap. Read why XML Sitemaps are important for your site.
4. copy after the URL like:sitemap.index.xml
5. Go to on google search console https://search.google.com/search-console/about
Paste your code here.
And click on submit button.
6. congratulation your sitemap is added successfully.
If you have any problems please leave your queries in the comment box.