WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Scott Reilly v2.5.2

Single Category Permalink

Reduce permalinks (category or post) that include entire hierarchy of categories to just having the lowest level category.

Single Category Permalink

The facts

Rating
5★ from 5
Active installs
400+
Price
Free
Last updated
29 Sep 2021
Added
Jul 2011
Requires WP
4.6
Tested up to
WP 5.8.15
Downloads
28,270

Our analysis

AI-assisted

The Single Category Permalink plugin modifies how permalinks are generated for posts in WordPress by simplifying the category structure. Instead of including the entire hierarchy of categories, it allows you to use only the lowest category in the hierarchy for the permalink. This can lead to cleaner and shorter URLs for your posts.

This plugin is suitable for users who want to streamline their permalink structure without losing the functionality of hierarchical categories. It provides a 302 redirect from the original longer URLs to the new shorter ones, ensuring that existing links continue to work.

Best for: This plugin suits WordPress users looking to simplify their permalink structure.

What it does well

  • Reduces permalink length by using only the lowest category
  • Maintains functionality of hierarchical categories
  • Issues 302 redirects to preserve existing links

Where it falls short

  • Limited information on additional features or support
  • Directory score indicates potential issues

Verdict

The Single Category Permalink plugin offers a straightforward solution for cleaner URLs, though users should consider the directory score when evaluating its reliability.

From the developer

Scott Reilly's own description of Single Category Permalink, lightly tidied.

Reduce permalinks (category or post) that include entire hierarchy of categories to just having the lowest category in the hierarchy.

By default, WordPress replaces the %category% permalink tag in a custom permalink structure with the entire hierarchy of categories for the post’s first matching category. For example, assuming your site has a hierarchical category structure like so:

Applications
  |_ Desktop
  |_ Web
    |_ WordPress

By default, if you have a permalink structure defined as %category%/%year%/%monthnum%/%day%/%postname%, your post titled “Best Plugins” assigned to the “WordPress” category would have a permalink of:

https://www.example.com/applications/web/wordpress/2008/01/15/best-plugins

If you activate the Single Category Permalink plugin, this would be the permalink generated for the post (and recognized by the blog):

https://www.example.com/wordpress/2008/01/15/best-plugins

In order for a category to be used as part of a post’s permalink structure, %category% must be explicitly defined in the Settings -> Permalinks admin page as part of a custom structure, i.e. /%category%/%postname%.

For category links, %category% is implied to follow the value set as the “Category base” (or the default category base if none is specified). So if your category base is ‘category’, the above example would list posts in the ‘WordPress’ category on this category listing page:

https://www.example.com/category/applications/web/wordpress/

With this plugin activated, that link would become:

https://www.example.com/category/wordpress/

NOTE: The fully hierarchical category and post permalinks will continue to work. The plugin issues a 302 redirect to browsers and search engines pointing them to the shorter URL.

Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

Hooks

The plugin exposes one filter for hooking. Code using this filter should ideally be put into a mu-plugin or site-specific plugin (which is beyond the scope of this readme to explain). Less ideally, you could put them in your active theme’s functions.php file.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for managing URLs.

All in One SEO

AIOSEO is the WordPress SEO plugin. Boost SEO rankings with AI SEO tools, schema, meta descriptions, XML sitem...

Free 2M+ installs 4.7★ (5,201)
301 Redirects

Manage 301 & 302 redirects. Simple redirection & redirects validation. Includes redirect stats & 4...

Free 300k+ installs 4.7★ (578)
Redirection for Contact Form 7

Redirect to any page or URL, execute scripts after submission, save data to the database, and unlock additiona...

Free 200k+ installs 4.7★ (275)
Permalink Manager Lite

Permalink Manager enhances WordPress’s built-in URL system, allowing you to change the URLs of native and cust...

Free 100k+ installs 4.8★ (176)
WP Encryption

Lifetime SSL solution - Free SSL certificate & HTTPS redirect, fix insecure site / SSL errors, Security he...

Free 50k+ installs 4.9★ (1,143)
Redirection

Manage 301 redirects, track 404 errors, and improve your site. No knowledge of Apache or Nginx required.

Free 2M+ installs 4.4★ (703)