This plugin started as a request over at Kim’s blog. It turned out it was needed so here it is!
My tag cloud provides you with a widget that actually gives you the ability to list the tags of your posts in a diiferent way than a tag cloud. It list the first 5, most popular or alphabetically depending on the preferences, as an unordered list and the rest are put in a dropdown.
Download the plugin from here: My Tag Cloud (1795) - 9.24 KB. Then place the file my_tag_cloud.php that can be found in the archive in your plugin directory. Activate it from the plugin management in your administration area. Finally, place the widget to your sidebar!
The default way the plugin works is this. It renders the 5 most used tags in an unordered list and the following are added on a dropdown. You can change this, along with the title, from the settings area within the code. Please open my_tag_cloud.php with your favorite text editor and notice the following code segment from line 18.
Note the following:
I got a very valid point as a valued feedback from a user here. As it seems the plugin actually broke his theme. The dropdown exceded the width of the widget so it looked bad. What happens is this. The dropdown’s length is defined from the bigger text in it. It seems he had “Search Engine Optimization” as a tag. You see it’s pretty big. To fix this you can trim your tags and add some “…” at the end. To do so please take a look at line 54. It says:
You need to remove that line and add the following:
Please note that “20” which is the tag length is actually how many characters you want your tag not to exceed.