Exclude pages from WordPress search

To exclude page from search, add following code to your theme’s functions.php.

Exclude page and all it’s child pages from search.

Leave a Reply

Your email address will not be published. Required fields are marked *

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