Linux 软件免费装
Banner图

No Category Parents

开发者 milardovich
更新时间 2026年9月1日 12:12
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

seo categories permalinks category base category parents

下载

0.2.4 0.2 0.2.1 0.2.2 0.2.3 0.1 0.3.0 0.3.1

详情介绍:

This plugin completely removes the mandatory 'Category Base' and all the parents from your category permalinks (e.g. /category/parent-category/my-category/ becomes /my-category/). It also shortens post permalinks when you use the /%category%/ permastruct, so a post filed under a deeply nested category still gets a short URL. If a post or page already uses the same slug as a category, the post keeps the clean URL and the category is served from /my-category-cat/ instead.

安装:

  1. Install and activate the plugin through the 'Plugins' menu in WordPress.
  2. That's it. Your categories are now reachable at http://mysite.com/my-category/
Deactivating the plugin restores the stock WordPress permalinks.

升级注意事项:

0.3.1 Housekeeping only: updates the plugin URI. No functional changes. 0.3.0 Fixes deeply nested categories, removes a rewrite flush that ran on every page load, and adds WordPress 7.0 / PHP 8 compatibility.

常见问题:

My category URLs did not change

Go to Settings > Permalinks and press Save once. That rebuilds the rewrite rules.

Do old links with the parent path still work?

Yes. /parent-category/my-category/ keeps resolving to the same archive.

更新日志:

0.3.1 0.3.0 0.2.4.1 0.2.4 0.2.3 0.2.2 0.2.1 0.2