Want to exclude certain posts or pages from WordPress search? If yes, then you have come to the right place for the answer.
WordPress search includes all the posts & pages in their search results.
In this article, we will show how you can conveniently exclude certain posts or pages from WordPress search.
First, let’s understand why it is sometimes needed to exclude certain posts or pages from WordPress Search.
Table of Contents
Why Exclude Certain Posts Or Pages From WordPress Search
The default WordPress Search feature shows the results from all WordPress posts & pages. This is okay for most of the websites out there & it does not affect the websites’ performance in anyway.
However, if your website is an online store, then there are some pages that you may not want in the search results. Say for example, the checkout page, my account page, or a thank you page which appears only after successful downloads. Some websites may not choose to show a specific post or page.
Exclude Certain Posts Or Pages From WordPress Search

This can be achieved very easily with the help of a WordPress Plugin. Download & install the Search Exclude plugin.

After you have activated the plugin in your WordPress website, edit the post or page that you want to exclude from the WordPress Search Result.
On the edit screen, you will see a Search Exclude box.

Just check the “Exclude from Search Results” CheckBox & click on the Update button to save the changes you have made to your post or page. By doing this the post or page will not appear in WordPress Search Results anymore.
To view all the items that you have excluded from search, go to Settings -ยป Search Exclude. You will see a list of items you have excluded from WordPress Search Results.

You can again include the excluded posts or pages in your WordPress Search Results by unchecking the CheckBox.
Conclusion
WordPress Plugins gives you all the possible options to customize your site even when it is as simple as excluding certain posts or pages. Use the Search Exclude plugin for achieving your objective.
You may also like,