Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Ambrosite Unlink Parent Categories

Unlinks parent categories/taxonomies in category menus and lists. Useful for creating dropdown menus with top-level placeholders. Affects the output o

I installed the plugin but it does not seem to be working. Why?

Unlink Parent Categories only affects the output of wp_list_categories. If your menu is not being generated by that functions, then the plugin will not work. If you want to test whether this is an issue with your menu, put the default 'Categories' widget into your sidebar. The Categories widget uses wp_list_categories, so if the parent categories are unlinked there, but not in your navigation menu, it means that your menu is not using wp_list_categories.

How can I use this plugin with custom taxonomies?

You must set the 'taxonomy' parameter of wp_list_categories in order to generate a list of custom taxonomy terms, as explained in the WordPress Codex:


Once the taxonomy parameter is set, the plugin will unlink the parent terms in the list, just as it does with normal categories. You can also set a custom taxonomy for the default Categories widget, by putting the following code into functions.php:

function wc_args( $cat_args ) {
        $cat_args['taxonomy'] = 'my_taxonomy';
        return $cat_args;
add_filter('widget_categories_args', 'wc_args');

I do not want to use dummy links. How can I fix my menu styles when the parent categories are unlinked?

If you uncheck 'Use Dummy Links', the plugin will unlink the parent categories by replacing the anchor tags with span tags. In some themes, this may cause styling problems if there are CSS selectors targeting the anchor tags that have been removed. In order to fix this, you must add an additional selector to any rule that targets the anchor tags. The CSS rules are different for every theme, so I cannot give specific instructions. As a general example, if your menu styles look like this:

#menu li a {
    some styles ...

Then you would need to add an additional selector which targets the span:

#menu li span,
#menu li a {
    some styles ...

Requires: 2.1 or higher
Compatible up to: 3.2.1
Last Updated: 6 years ago
Active Installs: 70+


2 out of 5 stars


Got something to say? Need help?


Not enough data

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