Plugin Directory

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

Parentless Categories

Like the_category(), list categories assigned to a post, but excluding assigned categories that have a child category also assigned to the post.

2.0.3 (2016-02-02)

  • New: Define 'Text Domain' plugin header attribute.
  • New: Create empty index.php to prevent files from being listed if web server has enabled directory listings.
  • Change: Explicitly declare methods in unit tests as public.
  • Change: Minor reformatting and improvements to internal code documentation.
  • Change: Note compatibility through WP 4.4+.
  • Change: Update copyright date (2016).

2.0.2 (2015-02-11)

  • Note compatibility through WP 4.1+
  • Update copyright date (2015)

2.0.1 (2014-08-30)

  • Minor plugin header reformatting
  • Add check to prevent execution of code if file is directly accessed
  • Change documentation links to wp.org to be https
  • Note compatibility through WP 4.0+
  • Add plugin icon

2.0 (2014-01-09)

  • Add c2c_parentless_categories()
  • Deprecate parentless_categories() in favor of c2c_parentless_categories()
  • Change default behavior of c2c_parentless_categories() to omit all ancestor categories by default, instead of just directly assigned categories
  • Add optional arg $omit_ancestors to c2c_parentless_categories() only omitting direct parent categories and not all ancestor categories
  • Add filter 'c2c_get_parentless_categories_omit_ancestors'
  • Add filter 'c2c_parentless_categories' to support filter invocation method c2c_parentless_categories()
  • Add c2c_get_parentless_categories_list()
  • Deprecate get_parentless_categories_list() in favor of c2c_get_parentless_categories_list()
  • Add filter 'c2c_get_parentless_categories_list' to support filter invocation method c2c_get_parentless_categories_list()
  • Add c2c_get_parentless_categories()
  • Deprecate get_parentless_categories() in favor of c2c_get_parentless_categories()
  • Add filter 'c2c_get_parentless_categories' to support filter invocation method c2c_get_parentless_categories()
  • Add filter 'c2c_parentless_categories_list' (which also passed $post_id to the hook)
  • Deprecate 'parentless_categories' in favor of 'c2c_parentless_categories_list'
  • Remove harcoded space added after custom separator in c2c_get_parentless_categories_list()
  • Add unit tests
  • Add Filters section to readme.txt to document all filters
  • Note compatibility through WP 3.8+
  • Drop compatibility with versions of WP older than 3.6
  • Update copyright date (2014)
  • Code and documentation reformatting (spacing, bracing)
  • Change donate link
  • Add banner image


  • Change description in plugin header to make it shorter
  • Note compatibility through WP 3.5+
  • Update copyright date (2013)


  • 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)


  • Note compatibility through WP 3.2+
  • Minor documentation reformatting in readme.txt
  • Fix plugin homepage and author links in description in readme.txt


  • Documentation tweaks
  • Note compatibility with WP 3.1+
  • Update copyright date (2011)


  • Wrap all functions in if(!function_exists()) check
  • Remove docs from top of plugin file (all that and more are in readme.txt)
  • Note compatibility with WP 2.9+, 3.0+
  • Add PHPDoc documentation
  • Minor tweaks to code formatting (spacing)
  • Add package info to top of plugin file
  • Add Changelog, Template Tags, and Upgrade Notice sections to readme.txt
  • Update copyright date
  • Remove trailing whitespace


  • Initial release

Requires: 3.6 or higher
Compatible up to: 4.5.5
Last Updated: 12 months ago
Active Installs: 100+


0 out of 5 stars


Got something to say? Need help?


Not enough data

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