Sitemap shows excluded posts / pages

Last update: 10 August, 2017
This option was added for easier access to the post exclusion feature in Yoast SEO 2.3

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

1
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’.
2
The ‘SEO’ settings will expand providing you additional options. If you don’t see the ‘XML Sitemaps’ setting in your ‘SEO’ menu, please enable your advanced settings first.

Yoast SEO > Dashboard (Advanced disabled)

Menu with advanced settings disabled
Enable advanced features

3
Click on ‘XML Sitemaps’.
Yoast SEO > XML Sitemaps
4
Click on ‘Excluded Posts’ and add the post or page ID in a comma separated list.

Don’t know the post or page ID. This article will show you how to find a post or page ID.

5
Click ‘Save Changes’.

Was this article helpful? ·