One of the more important tasks is to publish a site map to Google Search Console so that it understands the content on your website and is informed of changes to your website content and pages.
As of writing this, there is currently a bug in Yoast SEO where the sitemap is not generated until you disable and reenable the Sitemap functionality so that is the first task we will complete.
Login to WordPress admin dashboard then select SEO -> XML Sitemaps.
On this page, Uncheck the checkbox at the top which enables Sitemap functionality and press Save Changes.
Once you see “Settings saved.”, recheck the box and press Save Changes.
Now press the XML Sitemap button.
This should take you to your sitemap as displayed below, if you see something similar to the following then you have successfully generated the sitemap.
Now let’s go back to Google Search Console and select the website.
Open Crawl -> Sitemaps then press ADD/TEST SITEMAP which should open a new Dialog. Type in sitemap_index.xml then press Submit.
Once the page is refreshed you should see a screen similar to the below, if you do then your sitemap is now successfully submitted to Google Search Console.