這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Noindex Pages

外掛說明

This simple and lightweight plugin adds a “Hide from search engines” checkbox above the publish box to pages. By
ticking this box, a meta tag will be placed into the <head> section of your page specifying that robots should
not index the page.

By default this only applies to pages. You may extend this functionality to posts or other custom post types with a small bit of code. See the FAQ’s tab for further instructions.

螢幕擷圖

  • The publish box when editing a page, the added checkbox is highlighted.
  • The source code for the page, the added meta tag is highlighted.

安裝方式

  1. Upload the plugin files to /wp-content/plugins/noindex-pages/, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Edit a page, look for the checkbox above the “Publish” or “Update” button near the top-right.
  4. (Optional) verify it works by viewing your page and then right-click, “View Source”, and look for the meta tag with the name “robots” and value “noindex”.
  5. (Optional) Extend the functionality to posts or other custom post types by reading the FAQ’s.

常見問題集

Are there any advanced features, such as to block specific robots or add this code to archive/search pages?

No, this is just a simple plugin.

Can this be used for custom post types or posts?

Yes, with a bit of PHP. Just use the following code in your functions.php, which will add support for “post” and “product”:

function noindex_for_cpts( $post_types ) {
    return $post_types + array( "post", "product" );
}
add_filter('noindex-pages-post-types', 'noindex_for_cpts');

使用者評論

2018 年 8 月 19 日
Simple to use and does exactly what it says. Definitely 5 stars. My only question is (I’m new to this stuff): Is it safe to be using such an old plugin? Even though I know it wouldn’t need updates for the functionality, is using this plugin going to make my site unsafe or does it need updates simply for security reasons? Thanks!
2017 年 2 月 4 日
I have All In One SEO, and Jet Pack and these do not show up on the pages with the code, cannot find them doing a search for “noindex” With NoIndex Pages, it’s there!!! Thanks
閱讀全部 6 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Noindex Pages〉的開發相關工作。

參與者

將〈Noindex Pages〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.1

  • Improved screenshot quality for wordpress.org
  • Corrected “Tested up to” version number
  • Corrected “Requires at least” version number

1.0.0

  • First release
  • Pre-release version notes can be found on Github