© 2007 Rob

Wordpress tag cloud formatting

I’ve written a simple plugin that removes the html line breaks (br) between tags when the command wp_tag_cloud() is called from within a post. This is useful for people running a hack like runPHP to be able to execute commands since this behavior doesn’t manifest itself if you run the command from within a template.


To use this plugin, download one of these files and copy it to your /wp-content/plugins/ directory:

Tag Cloud Inline Plugin (.txt)

Tag Cloud Inline Plugin (.tar.gz)

If you grabbed the one ending in .txt, rename it to end it .php and simply activate the plugin from the Admin->Plugins page. The dreaded line breaks will dissapear. You can view this plugin in use on this tag cloud from neatostuff.com

4 Responses to “Wordpress tag cloud formatting”

  1. Rubèn says:

    Cool plugin. For me it’s not working

    http://www.productesdeneteja.com/blog/tag-cloud/

    I’m using RunPHP 2.3.1. Any clue?
    Thanks for your help.

  2. Rob says:

    For some reason, this plugin stopped working with the latest release of Wordpress (2.3.2). It works with 2.3.1 and earlier and I haven’t been able to track down why it stops working with the latest release.

    For one of my sites (neatostuff.com), I changed to using a very capable plugin called SimpleTags which allows for very nice tag formatting and lot of other features.

    I’ll post here if I can figure out why it’s broken in the latest release.

  3. Rubèn says:

    Thanks. I’m using still 2.3.1 for WP also.
    I’ll check simpletags.

Leave a Reply