Search Exclude
With this plugin you can exclude any page, post or whatever from the WordPress search results by checking off the corresponding checkbox on post/page edit page. Supports quick and bulk edit. On the plugin settings page you can also see the list of all the items that are hidden from search. Presentat
With this plugin you can exclude any page, post or whatever from the WordPress search results by checking off the corresponding checkbox on post/page edit page. Supports quick and bulk edit.
On the plugin settings page you can also see the list of all the items that are hidden from search.
Presentation
QuadLayers | Community
Screenshots & previews.
- 01Upload search-exclude directory to the /wp-content/plugins/ directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
- 03Go to any post/page edit page and check off the checkbox Exclude from Search Results if you don’t want the post/page to be shown in the search results
Frequently asked questions.
Does this plugin affect SEO?
No, it does not affect crawling and indexing by search engines. The ONLY thing it does is hiding selected post/pages from your site search page. Not altering SEO indexing.
If you want posts/pages to be hidden from search engines you may add the following snippet to your functions.php :
function add_meta_for_search_excluded() { global $post; if (false !== array_search($post->ID, get_option('sep_exclude', array()))) { echo '<meta name="robots" content="noindex,nofollow" />', "\n"; } } add_action('wp_head', 'add_meta_for_search_excluded');
Note: already indexed pages will remain indexed for quite a while. In order to remove them from Google index, you may use Google Search Console (or similar tool for other engines).
Are there any hooks or actions available to customize plugin behaviour?
Yes. There is an action searchexclude_hide_from_search . You can pass any post/page/custom_post ids as an array in the first parameter. The second parameter specifies state of visibility in search. Pass true if you want to hide posts/pages, or false – if you want show them in the search results.