This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Tidy tag cloud


Tidy tag cloud is a nicer lightweight tag cloud that gets rid of the default inline font-size style and provides better configurability such as custom css classes, return objects instead of strings and more. It’s simple to use and can be used in the same manner as the default wp_tag_cloud function.


  1. Download from here or from github:
  2. Upload ‘tidy-tag-cloud.php’ to the ‘/wp-content/plugins/’ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. This plugin removes the inline font-size style from the tag links and replaces them with size-x css classes. To make the tags appear with proper size, add the required css classes.

In your theme, instead of wp_tag_cloud() use tidy_tag_cloud(). It accepts the same parameters as wp_tag_cloud plus:

    'tag_class' => '',  // css class for each individual tag, use '' for no class
    'list_class' => 'wp-tag-cloud', // css class for the ul list, use '' for no class
    'show_default_tag_class' => false,  // show or hide the default tag class (tag-link-x)
    'show_title' => true    // show or hide link title
    'show_rel' => true  // show or hide rel="tag" tag

If the format parameter is set to array, an array of tag objects will be returned.

Two filters are available:

// called for each individual tag
add_filter('tidy_tag_cloud_tag', function($tag, $args) {
    // modify $tag properties, no need to return anything
    $tag->title = 'Custom title';
}, 10, 2);

// called for the complete output
add_filter('tidy_tag_cloud_output', function($output, $args) {
    // modify and return $output
    $output = 'Replace the whole output';
    return $output;
}, 10, 2);

See the plugin file or the readme on github for more information.

Contributors & Developers

“Tidy tag cloud” is open source software. The following people have contributed to this plugin.


Translate “Tidy tag cloud” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Confirmed compatibility with WP 4.1


  • Confirmed compatibility with WP 3.6
  • Fixed an error in the case of no tags


  • Added the show_rel argument


  • The initial version of this plugin