WP Manifestindependent plugin directory
manifest / seo / wp-minimalist-noindex

Minimalist NoIndex

Lets you prevent search engines from indexing posts, pages and custom post types in WordPress.

by Ronald Beilsma, Beilsma OÜ · github.com/beilsma/wp-minimalist-noindex

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/beilsma/wp-minimalist-noindex/archive/refs/heads/main.zip

Lets you prevent search engines from indexing posts, pages and custom post types in WordPress. If you check the box, a noindex meta tag will be included in the <head> of your page.

Features

  • Add a "Hide from search engines" checkbox to posts, pages, and custom post types (see below for how to add support for custom post types).
  • Outputs <meta name="robots" content="noindex, nofollow"> if the checkbox is checked.
  • No settings, minimal and easy to use.

Supported Languages

This plugin is available in the following languages:

  • English (default)
  • Spanish (es_ES)
  • French (fr_FR)
  • German (de_DE)
  • Dutch (nl_NL)
  • Italian (it_IT)
  • Portuguese (pt_PT)
  • Chinese (zh_CN)
  • Japanese (ja)

Installation

  1. Download or clone this repository.
  2. Upload the wp-minimalist-noindex folder to your WordPress /wp-content/plugins/ directory.
  3. Activate the plugin via the WordPress admin dashboard.

Usage

  • Edit any post, page, or supported custom post type. You'll see a checkbox labeled "Hide from search engines" in the sidebar.
  • Check the box if you want to prevent search engines from indexing this page.
  • If you leave the checkbox unchecked, no meta tag will be added to the page and the page will be indexed normally by search engines.
  • View your page source: the meta tag appears in the <head> only if the checkbox is checked.

Custom Post Type Support

By default, the meta box is added to posts and pages. You can add support for custom post types using the wpmmnx_supported_post_types filter:

// Add a single custom post type
add_filter('wpmmnx_supported_post_types', function($types) {
    $types[] = 'your_custom_post_type';
    return $types;
});

// Add multiple custom post types
add_filter('wpmmnx_supported_post_types', function($types) {
    $types = array_merge($types, ['portfolio', 'event', 'product']);
    return $types;
});

License

GPL v2 or later

Author

Ronald Beilsma (beilsma), Beilsma OÜ (beilsma.eu)