Exclude Pages from Sitemaps with Yoast Seo

Follow these 4 steps to remove post types from your sitemap using Yoast SEO plugin:

  1. Head to Add New under Plugin
  2. Search for Yoast SEO then install and activate the plugin
  3. Click on SEO on your left-hand side menu then choose Search Appearance
  4. Select “No” under the option “Show Pages in search results?” in the Content Types tab

Bear in mind that this method enables you to remove all pages on your site instantly. Wish to remove specific pages only? Take the 3 steps below:

  1. Go to Pages or Posts sections and pick your desired page and post
  2. Find the Advanced option at the bottom of the page
  3. Click No under the question ‘Allow search engines to show this Page in search results?