Site menu:

Categories

Archives

Site search

Recent Comments

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

Comments

Comment from Rubèn
Time: January 9, 2008, 7:20 am

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.

Comment from Rob
Time: January 9, 2008, 9:01 am

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.

Comment from Rubèn
Time: January 9, 2008, 9:07 am

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

Pingback from laboratorio caffeina » Remove whitespace from wordpress tagcloud
Time: April 3, 2008, 2:44 am

[...] that’s a simple plugin edited from this one. if you need both merge them PLAIN TEXT [...]

Write a comment