Title: No Category Parents
Author: Sergio Milardovich
Published: <strong>9 Unbir 2009</strong>
Last modified: 1 Ctember 2026

---

Search plugins

![](https://ps.w.org/no-category-parents/assets/banner-772x250.png?rev=3675231)

![](https://ps.w.org/no-category-parents/assets/icon.svg?rev=3675231)

# No Category Parents

 By [Sergio Milardovich](https://profiles.wordpress.org/milardovich/)

[Download](https://downloads.wordpress.org/plugin/no-category-parents.0.3.1.zip)

 * [Details](https://kab.wordpress.org/plugins/no-category-parents/#description)
 * [Reviews](https://kab.wordpress.org/plugins/no-category-parents/#reviews)
 *  [Installation](https://kab.wordpress.org/plugins/no-category-parents/#installation)
 * [Development](https://kab.wordpress.org/plugins/no-category-parents/#developers)

 [Support](https://wordpress.org/support/plugin/no-category-parents/)

## Description

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.

## Installation

 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.

## FAQ

### 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.

## Reviews

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

### 󠀁[Works flawlessly](https://wordpress.org/support/topic/works-flawlessly-89/)󠁿

 [jakubd](https://profiles.wordpress.org/jakubd/) 28 Γuct 2017

Simple plugin, that really works! ;o)

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

### 󠀁[Great](https://wordpress.org/support/topic/great-3696/)󠁿

 [Vercio](https://profiles.wordpress.org/vercio/) 3 Ctember 2016

everything you need

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/no-category-parents/reviews/)

## Contributors & Developers

“No Category Parents” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Sergio Milardovich ](https://profiles.wordpress.org/milardovich/)

[Translate “No Category Parents” into your language.](https://translate.wordpress.org/projects/wp-plugins/no-category-parents)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/no-category-parents/),
check out the [SVN repository](https://plugins.svn.wordpress.org/no-category-parents/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/no-category-parents/)
by [RSS](https://plugins.trac.wordpress.org/log/no-category-parents/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.3.1

 * Update the plugin URI to point at the plugin landing page.

#### 0.3.0

 * Compatible with WordPress 7.0 and PHP 8.
 * Fixed: parent categories were only removed one level deep. A category nested 
   two or more
    levels down (parent > child > grandchild) kept its immediate parent
   in the URL. Links are now rebuilt from the term instead of being regex-patched,
   so any depth works.
 * Fixed: PHP 8 warnings (« Undefined array key 0 », « Attempt to read property 
   ID on null »)
    when building permalinks.
 * Fixed: the rewrite rules were flushed on _every_ page load, rebuilding and re-
   saving the
    whole rule set on each request. Flushing now happens once, only after
   a category changes. Measured on a local WordPress 7.0 install: ~197 ms/request
   before, ~114 ms/request after.
 * Added: category feeds (`/my-category/feed/`) now resolve.
 * Changed: all functions are prefixed with `ncp_`. Earlier versions declared generic
   names
    such as `filter_category()` and `my_flush_rules()` in the global namespace,
   which could collide with a theme or another plugin.
 * Changed: the category base is now forced empty through a filter instead of being
   written
    to the database on every request.
 * Added: `ncp_collision_suffix` and `ncp_post_link_category` filters.
 * Removed: leftover debug code and an unused `id` query var.

#### 0.2.4.1

 * Quickfix: fixed pagination bug

#### 0.2.4

 * Tested up to WP 4.1
 * Fixed pagination problem (special thanks to Lukáš Wojnar).

#### 0.2.3

 * Changed some links.
 * Fixed « empty category » problem (special thanks to absolutex).

#### 0.2.2

 * In 0.2.1 when the « Category Base » field wasn’t empty the plugin didn’t work.
   Now the
    « Category Base » field will automatically be empty when you activate
   the plugin.

#### 0.2.1

 * Minor changes in the comments.

#### 0.2

 * The plugin now works with the permastruct /%category%/ and also replaces the 
   post permalinks.
 * Other minor fixes.

## Meta

 *  Version **0.3.1**
 *  Last updated **1 n waggur ago**
 *  Active installations **6,000+**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **7.0.7**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/no-category-parents/)
 * Tags
 * [categories](https://kab.wordpress.org/plugins/tags/categories/)[category base](https://kab.wordpress.org/plugins/tags/category-base/)
   [permalinks](https://kab.wordpress.org/plugins/tags/permalinks/)[seo](https://kab.wordpress.org/plugins/tags/seo/)
 *  [Advanced View](https://kab.wordpress.org/plugins/no-category-parents/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/no-category-parents/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/no-category-parents/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/no-category-parents/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/no-category-parents/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/no-category-parents/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/no-category-parents/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/no-category-parents/reviews/)

## Contributors

 *   [ Sergio Milardovich ](https://profiles.wordpress.org/milardovich/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/no-category-parents/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://milardovich.com.ar/)