Sitemap shows excluded posts / pages
Posts and pages can be assigned to multiple taxonomies and thus may unexpectedly show up in your sitemap when you thought it would be hidden. You can exclude individual posts or pages from the sitemap in the XML Sitemap settings.
Exclude Post or Page From Sitemaps
Log in to your WordPress website. When you're logged in, you will be in your 'Dashboard'. On the left-hand side, you will see a menu. In that menu, click on 'SEO'.
The 'SEO' settings will expand providing you additional options. Click on 'XML Sitemaps'.
- Click on 'Excluded Posts' and add the post or page ID in a comma separated list.
- Click 'Save Changes'.