| 开发者 |
fernandot
ayudawp |
|---|---|
| 更新时间 | 2026年4月19日 16:46 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
noindex robots directive, telling search engines not to include it in their results. No bloated SEO plugin needed — just clean, focused noindex management.
Features:
X-Robots-Tag HTTP header since feeds are XML, not HTML.<meta name="robots" content="noindex, follow"> tag to the <head> of posts and taxonomy archives set as noindex. This tells search engines not to index the page while still following its links.
Priority logic for posts:
Noindexer_Frontend::is_noindex( $post_id ) — returns true if a post should not be indexed.Noindexer_Frontend::is_term_noindex( $term_id, $taxonomy ) — returns true if a taxonomy term archive should not be indexed.noindexer folder to /wp-content/plugins/.A noindex directive tells search engines like Google not to include a page in their search results. The page is still accessible to visitors, but it won't appear in search results.
Yes. Since version 1.3.0, NoIndexer automatically excludes noindexed content from the native WordPress sitemap. Posts, post types, taxonomy terms, and taxonomy archives marked as noindex are removed from the sitemap. This works only with the native WordPress sitemap — third-party sitemaps from SEO plugins like Yoast or Rank Math are not affected, as those plugins manage their own sitemaps independently. For additional sitemap customization, you can also use Native Sitemap Customizer.
NoIndexer uses the standard WordPress wp_robots filter. If another plugin or theme also sets robots directives, the noindex directive from NoIndexer will be combined with them. If you only need noindex control and nothing else from your SEO plugin, NoIndexer is a lightweight alternative.
Yes. Both the Classic Editor and the Block Editor (Gutenberg) include a NoIndexer checkbox in the sidebar. You can also use Quick Edit or bulk actions from the post list.
Yes. Since version 1.4.0, NoIndexer includes a dedicated section to noindex WordPress RSS feeds by type: main feed, taxonomy feeds, author feeds, site comments feed, and per-post comments feeds. Each type has its own independent toggle. Feeds are XML, so NoIndexer uses the X-Robots-Tag HTTP header instead of the meta robots tag. These rules work independently from your content noindex settings.
Deactivating the plugin stops the noindex meta tags from being output, but your settings are preserved. Deleting the plugin removes all settings, post meta, and term meta data from the database.
Yes. NoIndexer automatically detects all public post types registered on your site, including those from plugins like WooCommerce (products), bbPress (forums), or any custom post type.
Yes. NoIndexer automatically detects all public taxonomies, including WooCommerce product categories, product tags, and any custom taxonomy registered by other plugins.
WooCommerce product attributes (color, size, etc.) only appear in NoIndexer when they have archives enabled. Go to WooCommerce > Attributes, edit the attribute, and check "Enable Archives?". Without this option, WooCommerce does not create public archive pages for the attribute, so there is no URL to noindex.
Yes. You can either set an entire taxonomy as noindex (e.g., all tags) and then exclude specific terms, or set individual terms as noindex without affecting the rest of the taxonomy.
Developers can use Noindexer_Frontend::is_noindex( $post_id ) for posts and Noindexer_Frontend::is_term_noindex( $term_id, $taxonomy ) for taxonomy terms. Both methods resolve the full priority logic.
Noindexer_Frontend::is_term_noindex() method for third-party integration.