Search Exclude

Beschrijving

Met deze plugin kun je pagina’s, berichten of wat dan ook uitsluiten van de WordPress zoekresultaten door het betreffende selectievakje op de pagina voor het bewerken van berichten/pagina’s uit te vinken.
Ondersteunt snelle en bulk bewerking.

Op de plugin instellingen pagina kun je ook de lijst zien van alle items die verborgen zijn voor zoeken.

Presentatie

QuadLayers | Community

Schermafbeeldingen

Installatie

  1. Upload search-exclude map naar de /wp-content/plugins/ map
  2. Activeer de plugin via het ‘Plugins’ menu in WordPress
  3. Ga naar een pagina waar je een bericht/pagina bewerkt en schakel het selectievakje Uitsluiten uit zoekresultaten in als je niet wilt dat het bericht/de pagina wordt weergegeven in de zoekresultaten

FAQ

Heeft deze plugin invloed op SEO?

Nee, het heeft geen invloed op het crawlen en indexeren door zoekmachines.
Het enige wat het doet, is geselecteerde berichten/pagina’s verbergen op de zoekpagina van je website. Het heeft geen invloed op de SEO indexering.

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).

Zijn er hooks of acties beschikbaar om het gedrag van de plugin aan te passen?

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.

Example:
Let’s say you want “Exclude from Search Results” checkbox to be checked off by default
for newly created posts, but not pages. In this case you can add following code
to your theme’s function.php:

add_filter('default_content', 'exclude_new_post_by_default', 10, 2);
function exclude_new_post_by_default($content, $post)
{
    if ('post' === $post->post_type) {
        do_action('searchexclude_hide_from_search', array($post->ID), true);
    }
}

Also there is a filter searchexclude_filter_search.
With this filter you can turn on/off search filtering dynamically.
Parameters:
$exclude – current search filtering state (specifies whether to filter search or not)
$query – current WP_Query object

Door ’true’ of ‘false’ terug te geven, kan je de zoekfilters respectievelijk in- of uitschakelen.

Example:
Let’s say you need to disable search filtering if searching by specific post_type.
In this case you could add following code to you functions.php:

add_filter('searchexclude_filter_search', 'filterForProducts', 10, 2);
function filterForProducts($exclude, $query)
{
    return $exclude && 'product' !== $query->get('post_type');
}

Beoordelingen

5 juli 2026 1 reactie
Does what it needs to do. Good and fit for purpose. I can hide pages and make sure its specific for an invited audience only.
3 februari 2026 1 reactie
It took me literally years to find out that (for instance) the download pages of my freebies could and would come up in every search result on my page. Thanks to this plugin they don’t anymore and it was a breeze to install and to implement, so all 5 stars: well deserved!
30 november 2025 1 reactie
This plugin is THE key to helping our website visitors and customers find what they are looking for. (By blocking all the less important pages that happen to contain popular keywords.)
28 november 2025 1 reactie
Really great if you don’t want (part of) your site indexed by search engines.
Lees alle 217 beoordelingen

Bijdragers & ontwikkelaars

“Search Exclude” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

“Search Exclude” is vertaald in 5 talen. Dank voor de vertalers voor hun bijdragen.

Vertaal “Search Exclude” naar jouw taal.

Interesse in de ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

2.6.5

  • WordPress 7.0 compatibiliteit

2.6.4

  • oplossing: neem berichttypes met `exclude_from_search=false` op in de instellingen voor uitsluiting bij het zoeken

2.6.3

  • opgelost: php fouten

2.6.2

  • Aangepast berichttype ondersteuning

2.6.1

  • fix: REST API permission error for Editors in Block Editor

2.6.0

  • WordPress ondersteuning

2.5.9

  • fix: update dependencies

2.5.8

  • fix: security issues

2.5.7

  • opgelost: php 7.2 fouten

2.5.6

  • fix: update dependencies

2.5.5

  • fix: update dependencies

2.5.4

  • fix: improve get_terms to reduce term load time

2.5.3

  • fix: user editor posts permissions

2.5.2

  • fix: update dependencies

2.5.1

  • fix: update dependencies

2.5.0

  • fix: security issues

2.4.9

  • fix: load plugin textdomain

2.4.8

  • WordPress ondersteuning

2.4.7

  • fix: terms exclusion
  • fix: Content Control plugin compatibility

2.4.6

  • oplossing: bijwerken readme.txt

2.4.5

  • fix: search exclude in ajax

2.4.4

  • fix: load plugin textdomain

2.4.3

  • fix: search exclude documentation url

2.4.2

  • opgelost: jetpack automatisch laden bijgewerkt

2.4.1

  • opgelost: php fouten

2.4.0

  • fix: implement jetpack autoload

2.3.0

  • opgelost: php fouten
  • fix: improve allowed screen logic
  • fix: scripts in custom post types
  • fix: advanced custom fields compatibility

2.2.0

  • opgelost: php fouten

2.1.9

  • opgelost: php fouten
  • fix: compatibility with classic editor

2.1.8

  • WordPress 6.7 ondersteuning

2.1.7

  • opgelost: WordPress 6.1.3 ondersteuning
  • opgelost: grote queries
  • Notificatie verwijderd

2.1.6

  • Refactor update

2.1.5

  • Refactor

2.1.4

  • WordPress ondersteuning

2.1.3

  • WordPress ondersteuning

2.1.2

  • WordPress ondersteuning

2.1.1

  • Pakketen bijgewerkt

2.1.0

  • WordPress ondersteuning

2.0.9

  • opgelost: los PHP-fouten op

2.0.8

  • Vertaal strings

2.0.7

  • WordPress ondersteuning

2.0.6

  • WordPress ondersteuning

2.0.5

  • Portfolio link bijwerken

2.0.4

  • WordPress ondersteuning

2.0.3

  • opgelost: string vertalingen problemen opgelost

2.0.2

  • opgelost: string vertalingen problemen opgelost

2.0.1

  • opgelost: string vertalingen problemen opgelost

2.0.0

  • i18n geïmplementeerd
  • Composer geïmplementeerd
  • Autoload geïmplementeerd
  • Rename files to fit WordPress Development rules
  • Rename classes to fit WordPress Development rules
  • Rename variables to fit WordPress Development rules

1.3.1

  • Auteur update.

1.3.0

  • fix: and rework bulk edit: The Bulk actions dropdown now offers hide/show actions.

1.2.7

  • This is a security release. All users are encouraged to upgrade.
  • opgelost: mogelijke XSS-kwetsbaarheid verholpen.

1.2.6

  • oplossing: compatibiliteit met WordPress 5.5

1.2.5

  • Security release. More protection added.

1.2.4

  • Security release. All users are encouraged to update.
  • Added filter searchexclude_filter_permissions.

1.2.2

  • Actie toegevoegd searchexclude_hide_from_search
  • Filter toegevoegd searchexclude_filter_search
  • Bulkacties voor Firefox opgelost

1.2.1

  • Fixed bug when unable to save post on PHP <5.5 because of boolval() usage

1.2.0

  • Ondersteuning voor snel en in bulk bewerken toegevoegd
  • Getest tot WP 4.1

1.1.0

  • Getest tot WP 4.0
  • Do not show Plugin on some service pages in Admin
  • Conflict met bbPress verholpen
  • Waarschuwing over verouderde functies verholpen wanneer DEBUG is ingeschakeld

1.0.6

  • Fixed search filtering for AJAX requests

1.0.5

  • Not excluding items from search results on admin interface

1.0.4

  • Fixed links on settings page with list of excluded items
  • Getest tot WP 3.9

1.0.3

  • Added support for excluding attachments from search results
  • Getest tot WP 3.8

1.0.2

  • Opgelost: conflict met de Yoast WordPress SEO plugin

1.0.1

  • Opgelost: PHP 5.2 compatibiliteit

1.0

  • Eerste release