Title: CleanCodeNZ Exclude Pages Plugin
Author: cleancodenz
Published: <strong>2010 年 10 月 13 日</strong>
Last modified: 2011 年 2 月 6 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/cleancode-exclude-pages.svg)

# CleanCodeNZ Exclude Pages Plugin

 作者：[cleancodenz](https://profiles.wordpress.org/cleancodenz/)

[下载](https://downloads.wordpress.org/plugin/cleancode-exclude-pages.2.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/cleancode-exclude-pages/#description)
 * [评价](https://cn.wordpress.org/plugins/cleancode-exclude-pages/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/cleancode-exclude-pages/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/cleancode-exclude-pages/#developers)

 [支持](https://wordpress.org/support/plugin/cleancode-exclude-pages/)

## 描述

This plugin allows you to define the custom field to be attached to a page to be
excluded from navigation and(or) search results.

As the exclusion is done through highly optimized cached general wordpress query,
and queried once for even hierarchical data, this would provide best performance
and scalability.
 It is using custom fields without creating field or table, it 
is done in the most unobtrusive way. Pages that have parent and child relationships
are fully supported without any hassle.

Any issues: [contact me](http://www.cleancode.co.nz/contact).

## 安装

 1. Upload this plugin to your plugins directory. It will create a ‘wp-content/plugins/
    cleancodenzexlp/’ directory
 2. WordPress users then can go to their Plugins page and activate “CleanCode NZ Exclude
    Pages Plugin”.
 3. Now go to Settings->CleanCodeNZEXLP, type in custom field name and value pair for
    pages to be excluded.
 4. That is all it needed for it to work

## 常见问题

  What happens for parent and child pages

 1. When parent is excluded, child page is excluded, ==> neither appears
 2. When parent is excluded, child page is not excluded, ==> only child page will appear
 3. When parent is not excluded, child page is excluded, ==> only parent page will 
    appear
 4. When parent is not excluded, child page is not excluded, ==> both parent and child
    page will appear

  What do the options mean

 1. Exclude from search too =1 , Exclude from search only =1 ==> Exclude from search
    results only
 2. Exclude from search too =1 , Exclude from search only =0 ==> Exclude from both 
    navigation and search results
 3. Exclude from search too =0 , Exclude from search only =1 ==> Exclude from search
    results only
 4. Exclude from search too =0 , Exclude from search only =0 ==> Exclude from navigation
    only

It is obvious not the smartest way to configure two exclusions, but has to be done
like this to make it backward compatible.

  Where can I find help for this plugin

You can find more information of this plugin from [CleanCodeNz Exclude Pages WordPress Plugin](http://www.cleancode.co.nz/cleancodenz-exclude-pages-wordpress-plugin)

## 评价

此插件暂无评价。

## 贡献者及开发者

「CleanCodeNZ Exclude Pages Plugin」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ cleancodenz ](https://profiles.wordpress.org/cleancodenz/)

[帮助将「CleanCodeNZ Exclude Pages Plugin」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/cleancode-exclude-pages)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/cleancode-exclude-pages/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/cleancode-exclude-pages/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/cleancode-exclude-pages/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/cleancode-exclude-pages/)。

## 更新日志

1.0.0 : First release

1.1.0 : Exclude from search feature added.

1.2.0 : Parent and child pages support added.

2.0.0 : Exclude from search results only is added, so now this plugin can be used
for exclude from navigation or exclude from search results or both.

## 额外信息

 *  版本 **2.0.0**
 *  最后更新：**15 年前**
 *  活跃安装数量 **20+**
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/cleancode-exclude-pages/)
 * 标签
 * [exclude pages](https://cn.wordpress.org/plugins/tags/exclude-pages/)[menu](https://cn.wordpress.org/plugins/tags/menu/)
   [navigation](https://cn.wordpress.org/plugins/tags/navigation/)[search](https://cn.wordpress.org/plugins/tags/search/)
   [wp_list_pages_excludes](https://cn.wordpress.org/plugins/tags/wp_list_pages_excludes/)
 *  [高级视图](https://cn.wordpress.org/plugins/cleancode-exclude-pages/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/cleancode-exclude-pages/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/cleancode-exclude-pages/reviews/)

## 贡献者

 *   [ cleancodenz ](https://profiles.wordpress.org/cleancodenz/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/cleancode-exclude-pages/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.cleancode.co.nz/)