Title: Hide Categories
Author: Eduardo
Published: <strong>2009 年 8 月 31 日</strong>
Last modified: 2011 年 3 月 28 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/hide-categories.svg)

# Hide Categories

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

[下载](https://downloads.wordpress.org/plugin/hide-categories.zip)

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

 [支持](https://wordpress.org/support/plugin/hide-categories/)

## 描述

Hide one o more categories when you use the_category tag or wp_list_categories tag.
No exclude post, but only hide a category name in template view.
 Example? You use
a category called “featured” in your template but you don’t want it see? Use Hide
Categories

Thanks to [infocube](http://www.infocube.it) for the plugin’s idea

## 屏幕截图

 * [[
 * administration
 * [[
 * in action

## 安装

 * install plugin
 * go to Hide Categories configuration
 * choose a categories to exclude

## 评价

![](https://secure.gravatar.com/avatar/2b1545e4bfa2e33ee9341a8b2fd7d56e751fe918fb6f639769960834c5141c60?
s=60&d=retro&r=g)

### 󠀁[To make it work in WP 4.2](https://wordpress.org/support/topic/to-make-it-work-in-wp-42/)󠁿

 [Heliocles](https://profiles.wordpress.org/heliocles/) 2016 年 9 月 3 日

A client was using this and when I updated WP it stopped working. If you are already
using it, you can make it work by changing one line in the plugin code. Go to the
plugin editor and select Hide Categories from the drop down. The file selected on
the right should be ‘hide-categories/hide-categories.php’ 32 lines down you should
see: if(in_array($key, $exclude)) unset($code[$key]); Replace only the first $key
with $r->term_id and save.

![](https://secure.gravatar.com/avatar/89cf64cb5f9ef7f13ea2903f850a698150752715894725a97bec004ebeb0707b?
s=60&d=retro&r=g)

### 󠀁[No longer working on 4.4](https://wordpress.org/support/topic/no-longer-working-on-44/)󠁿

 [Erwin](https://profiles.wordpress.org/killioughtta/) 2016 年 9 月 3 日

Does not hide the selected categories. Some of the selected categories were hidden
on some posts and on others, other (seemingly) random categories were hidden. Tested
with 4.4 and theme ColorMag.

 [ 阅读所有6条评价 ](https://wordpress.org/support/plugin/hide-categories/reviews/)

## 贡献者及开发者

「Hide Categories」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Hide Categories」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/hide-categories)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.2

 * functions rewrite
 * add support for wp_list_categories

#### 1.0.1

 * bugfix

#### 1.0.0

 * first release

## 额外信息

 *  版本 **1.2**
 *  最后更新：**15 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 2.8 或更高版本 **
 *  已测试的最高版本为 **2.8.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/hide-categories/)
 * 标签
 * [category](https://cn.wordpress.org/plugins/tags/category/)[hide](https://cn.wordpress.org/plugins/tags/hide/)
   [hide categories](https://cn.wordpress.org/plugins/tags/hide-categories/)
 *  [高级视图](https://cn.wordpress.org/plugins/hide-categories/advanced/)

## 评级

 3.7 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/hide-categories/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/hide-categories/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/hide-categories/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/hide-categories/reviews/?filter=2)
 *  [  2 条 1 星评价     ](https://wordpress.org/support/plugin/hide-categories/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/hide-categories/reviews/#new-post)

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

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/hide-categories/)