WordPress Block Page From Search Engines

We enjoy using WordPress because it is so friendly with Search Engines; however, what if you have a page you want public but not indexed? There are a number of ways to do this and adding a code to a “header.php” file in your child-theme, but this gets messy. The plug-ins we used in the past are no longer in development. Well everything we needed to achieve this was already installed and it is in Yoast SEO.

  • In the Admin section go to the page you want to block.
  • Expand the Yoast SEO tab.
  • Go down to Advanced and expand it.
  • In the “Allow search engines to show this Post in search results?” set this to “NO“, and the “Should search engines follow links on this Post” to “No

If you look at the source code of the page you will see the meta data for indexing is set to NOT INDEX.

Let us know if this helped you…


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.

WP2Social Auto Publish Powered By : XYZScripts.com
Translate »