Title: Top Level Categories
Author: Fortes
Published: <strong>2007 年 3 月 1 日</strong>
Last modified: 2008 年 3 月 31 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/top-level-cats.svg)

# Top Level Categories

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

[下载](https://downloads.wordpress.org/plugin/top-level-cats.release-1.0.1.zip)

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

 [支持](https://wordpress.org/support/plugin/top-level-cats/)

## 描述

The Top Level Categories plugin allows you to remove the prefix before the URL to
your category page. For example, instead of http://fortes.com/category/work, I use
http://fortes.com/work for the address my “work” category. WordPress doesn’t allow
you to have a blank prefix for categories (they insert `category/` before the name),
this plugin works around that restriction.

### Known Issues / Bugs

 1. This plugin **will not work** if you have a permalink structure like `%postname`
    or `%category%/%postname%` — there is currently no workaround

### Uninstall

 1. Deactivate the plugin
 2. That’s it! 🙂

## 安装

 1. Copy the `top-level-cats.php` file into your `wp-content/plugins` directory
 2. 通过WordPress的“插件”菜单激活插件
 3. That’s it! 🙂

## 常见问题

  Installation Instructions

 1. Copy the `top-level-cats.php` file into your `wp-content/plugins` directory
 2. 通过WordPress的“插件”菜单激活插件
 3. That’s it! 🙂

  My links are broken when using `%postname` or `%category%/%postname%` as my permalink
structure

This is a known issue, for which there is unfortunately no good workaround. If you
add a suffix to your permalink structure (such as `.html`) you can fix this issue.
For example, try `%category%/%postname%.html` — I realize this is not ideal, but
there is no good solution for this issue.

  How do I automatically redirect people from the old category permalink?

Use the [Permalink Redirect Plugin](http://fucoder.com/code/permalink-redirect/)

  I’m getting 404 errors when I click on my category link

First, make sure that you’ve followed the installation instructions — you must manually
update your permalink structure (in the ‘Options’ -> ‘Permalinks’ section of your
admin). If that doesn’t work, then let me know!

  I’ve found a bug, how can I tell you about it so you’ll fix it for me?

Go to http://fortes.com/contact and fill out the contact form. Make sure you let
me know the following:

 * What version of WordPress you’re using
 * What other plugins you’re running
 * What your permalink structure is
 * Exactly what problem you’re seeing

Unfortunately, I do have a life outside of this plugin, so don’t be sad if I don’t
fix the bug within 5 minutes.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「Top Level Categories」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/top-level-cats)

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**9 年前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 2.0.9 或更高版本 **
 *  已测试的最高版本为 **2.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/top-level-cats/)
 * 标签
 * [categories](https://cn.wordpress.org/plugins/tags/categories/)[permalink](https://cn.wordpress.org/plugins/tags/permalink/)
 *  [高级视图](https://cn.wordpress.org/plugins/top-level-cats/advanced/)

## 评级

 5 星（最高 5 星）。

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

[您的评价](https://wordpress.org/support/plugin/top-level-cats/reviews/#new-post)

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

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/top-level-cats/)

## 捐助

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

 [ 捐助此插件 ](http://fortes.com/2007/02/27/top-level-categories-plugin-01/)