Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Single Category Permalink

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

2.1.2 (2016-03-29)

  • New: Add LICENSE file.
  • New: Add empty index.php to prevent files from being listed if web server has enabled directory listings.
  • New: Add 'Text Domain' to plugin header.
  • Change: Minor code reformatting.
  • Change: Explicitly declare methods in unit tests as public; minor unit test doc reformatting.
  • Change: Note compatibility through WP 4.5+.
  • Change: Update copyright date (2016).

2.1.1 (2015-02-17)

  • Reformat plugin header
  • Note compatibility through WP 4.1+
  • Change documentation links to wp.org to be https
  • Update copyright date (2015)
  • Add plugin icon

2.1 (2014-01-24)

  • Add unit tests
  • Minor documentation improvements
  • Minor code reformatting (spacing, bracing)
  • Note compatibility through WP 3.8+
  • Update copyright date (2014)
  • Change donate link
  • Add banner


  • Add check to prevent execution of code if file is directly accessed
  • Note compatibility through WP 3.5+
  • Update copyright date (2013)
  • Minor code reformatting (spacing)


  • Re-license as GPLv2 or later (from X11)
  • Add 'License' and 'License URI' header tags to readme.txt and plugin file
  • Remove ending PHP close tag
  • Note compatibility through WP 3.4+


  • Note compatibility through WP 3.3+
  • Add link to plugin directory page to readme.txt
  • Update copyright date (2012)


  • Fix bug triggered when creating new post


  • Fix compatibility bug relating to generation of category permalink
  • Rename single_category_postlink() to c2c_single_category_postlink()
  • Rename single_category_catlink() to c2c_single_category_catlink()
  • Add c2c_single_category_redirect() to redirect hierarchical category links to the single category alternative
  • Add filter 'c2c_single_category_redirect_status' to allow override of default redirect status code
  • Wrap all functions in if (!function_exists()) check
  • Remove docs from top of plugin file (all that and more are in readme.txt)
  • Add plugin homepage and author links in description in readme.txt
  • Note compatibility through WP3.2+
  • Add PHPDoc documentation
  • Expand documentation in readme.txt
  • Minor tweaks to code formatting (spacing)
  • Minor documentation reformatting in readme.txt
  • Change description
  • Add package info to top of plugin file
  • Add Frequently Asked Questions, Filters, Changelog, and Upgrade Notice sections to readme.txt
  • Update copyright date (2011)


  • Initial release

Requires: 1.5 or higher
Compatible up to: 4.5.6
Last Updated: 10 months ago
Active Installs: 1,000+


5 out of 5 stars


1 of 1 support threads in the last two months have been marked resolved.

Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.