Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
No category parents icon

No category parents

v0.3.1
by Sergio Milardovich · 5.0 (3 reviews)

This plugin will completely remove the mandatory 'Category Base' and all the parents from your category permalinks (e.g.

6K+ active installs Updated Sep 01, 2026 Tested to 7.0.9 Requires PHP 7.4
Try Demo Download
Pre-installed Ready in ~10s No card

About No category parents

This plugin eliminates the need for the "Category Base" in your category permalinks, simplifying the URL structure. It removes the parent categories from the permalink, making it shorter and cleaner.

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.

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…