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
    add-new-plugin
  2. Search for Yoast SEO then install and activate the plugin
    pda-install-yoast-seo
  3. Click on SEO on your left-hand side menu then choose Search Appearance
    pda-search-appearance
  4. Select “No” under the option “Show Pages in search results?” in the Content Types tab
    pda-yoast-no-show-pages-search-results

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
    pda-pages-posts
  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?
    pda-yoast-remove-search-engines-metabox