Tag Happy: Popular Tags Plugin July 9, 2005
In an ongoing effort to make this site as cool as possible, I’ve created my first Wordpress plugin called “Popular Tags.” The purpose of the plugin is to create a finite list of popular tags used and to display said list by weight. Since tags are ongoing, the list needs to be finite or my homepage would grow into a huge ugly list of tags. So what I’ve done is created a plugin that will only show the x number of popular tags (the tags being wordpress categories under the hood). To see this plugin in action, visit my home page.
I started out with Matt Kingston’s Weighted Categories code and made some changes (one of which fixes a bug with Matt’s plugin where the last category in your list isn’t displayed properly). The format to use the plugin is no different than how it’s used on Matt’s plugin:
< ?php
$minfont = 8;
$maxfont = 14;
$fontunit = "pt";
$category_ids_to_exclude = "";
popular_tags($minfont, $maxfont, $fontunit, $category_ids_to_exclude);
?>
You can download the plugin here. Let me know if it works out for you.

Loading...
46 Responses to “Tag Happy: Popular Tags Plugin”
I’ll have to implement this on my blog Theron. Anyhow, just stopping by because you #1 Because you updated and #2 - because I’ll be in Houston until Wednesday evening. I have to take care of financial aid stuff and pick up my diploma. :)
Hey guys - this is a very nice plugin which I am very interesting to incorporated in my weblog, however it is not working … all I get is the code instead of the actual tags. any idea what the problem could be?
Answered in email, problem solved… he copied the code above without removing the space between the < and ?
[…] Squible » Tag Happy: Popular Tags Plugin— Tagged as: [Plugins Wordpress] Links […]
[…] popular_tags() Of course I use popular tags, which I’ve rolled into this plugin. I also made a small change to the code so that popular tags get displayed in alphabetical order. Directions on using the popular tags plugin can be found here. […]
[…] I’ve added a weighted categories plugin that formats the categories in the sidebar a bit better than the simple categories list Wordpress comes with by default. […]
Can i use this plugin to display my links in my links page?
No it can’t be used for that, sorry… I can’t even think how it would be hacked to do that unless you did it randomly or something.
I’ve just tested this plugin on my test blog (WP 1.5.3) and it works perfectly. Good job !
I have a slight problem with this nice plugin: I can’t access the last category. I tried “Weighted Categories” and it behaves the same way.
@Danloreye - Im having the exact same issue. Is it not creating the URL correctly and just putting the category name after the current URL?
Colin, Dan,
Are you guys using mod_rewrite for permalinks?
@Theron - Sorry, I actually just refreshed the page and it does work correctly now. Although the “Weighted Categories” plugin still doesn’t but I noticed you mentioned that in your post above.
Is there a way to stop the “…” from showing up in between tags?
Yes, edit the plugin and remove the “…” from the code. :)
Thanks a lot for the quick response and nice work with the plugin!
The “last entry” bug seems to still be there.
Note the last catagory URL fails to build a proper string containing catagory ID.
For what it’s worth, I was able to resolve the Catagory ID issue above by setting the Permalink Structure to use Custom Structure “/%category%” instead of the default ID method.
[…] I created a new wordpress plugin called Top Categories. You tell it how many of your most frequently posted to categories you want it to show and it will display an unordered list of those categories. It is based off of the Popular Tags plugin by Theron Parlin which was based on the weighted categories plugin by Matt Kingston. Unlike either of those plugins I do not display a tag cloud - but that might be a good option so that this one plugin is a bit more flexible. […]
I keep trying to insert the code into a page for my site but it’s not working. I took out the space between
Is there a way to show all tags whether they are popular or not? Id like to have a full listing of tags on my archive page.
For some reason the last tag at end of popular tags seemed to have incorrect link to the proper permalink. How do I resolve this? The rest of popular tags are functioning correctly. I love popular tags!
For you? Chloraform and strapping tape. Or a magazine. Go with the one without the federal charges.
Is there a way to prevent this plugin from finding posts that are published in the future?
[…] Popular Tags Plugin no es más que una pequeña actualización del código original, similar a la que hizo Antonio meses despues, y que por ese mismo motivo tampoco funciona en la alpha de WP 2.1 (en la actual no existen problemas). Wordpress | Enlace permanente # | Menéame […]
it works, and it works well.thank you very much.
having trouble getting wp2.0.2 to recognize it. i’m new to wp and this would seem to be a problem w/ my use of wp- but i can get other plugins to work just by copying them into the wp-content/plugins dir.
i can’t activate this plugin as it doesnt show up in my wp management console. i’ve checked the popular_tags file’s header and all seems fine. i’ve even manually created my own header to see if wp would pick it up. php tags seem file too… opening just as there should be.
even if there was a problem w/ the plugin code- why wont wp recognize it and show it under Plugin Managment??
any suggestions?
tia!
oops- found my problem. the link above downloads with the file extension .phps
the extra ’s’ screwed me up. i never noticed the mispelling. once i removed the ’s’ wp recognized it and installed perfectly.
thanks!
(and correct the name in the link above :)
To fix the last link not working do the following:
Look at the output of list_cats() - it includes a newline at the end of the output, which then messes up the first foreach loop.
Change:
$cats = list_cats(1, ‘all’, ‘name’, ‘asc’, ‘’, 0, 0, 1, 1, 0, 1, 1, 0, 1, ‘’, ‘’, $exclude, 0);
to
$cats = trim(list_cats(1, ‘all’, ‘name’, ‘asc’, ‘’, 0, 0, 1, 1, 0, 1, 1, 0, 1, ‘’, ‘’, $exclude, 0));
The problem should be solved
ZAK posted this fix on hitormiss.org
[…] Popular tags : les catégories en sidebar en différente taille […]
[…] Popular Tag: remplace la barre des catégories par un nuage contenant les différentes catégories, celle ci devenant de plus en plus grosses en fonctions du nombre d’articles posté dedans. […]
[…] J’ai également rajouté un plug-in: Popular Tag, qui remplace la barre des catégories par un nuage contenant les différentes catégories, celle ci devenant de plus en plus grosses en fonctions du nombre d’articles posté dedans. […]
[…] Finished upgrading to WordPress 2.1, with one minor problem that I will try to resolve later. This involves ‘popular tags‘. […]
[…] förutom ovan: NoFollow 0.02a En gammal plug som automatiskt skapar ett “_nofollow” för alla länkar. Top Categories 1.0 visar hur många postningar som finns i varje kategori. Ubernyms 2.6 En lysande funktion som innebär att de förkortningar, ord och liknande automatiskt ges definitioner, länkas automatiskt etc. […]
Nice job!!
free voyeur movie…
free voyeur movie moves…
sexy chicks…
Research about sexy chicks….
[…] popular-tags-plugin Attention:Â renommer le fichier de popular tags en .php […]
chrysler dodge grapevine jeep…
ha-rd-po-rn-fu-ck 802930 The chrysler dodge grapevine jeep…
man o war…
Aggregator of man o war sites…
cerritos college…
cerritos college info and more…
nude art young…
ka-ka-sh-ka 802930 homepage of nude art young…
Arkansassite…
First-class tv internet design….
canyou123…
Outstanding multimedia.phenomenal health news….
[…] Visit […]
Firmamız EPS imalatı ve strafor makinaları ile ilgili çeşitli tip üretim şekilleri konusunda hizmet vermektedir; EPS, ambalaj üretim tesisleri, EPS Bardak ve Tabak, Enjeksiyon Makinaları, Blok Makinaları, Şişirme Makinaları, strafor izolasyon, Kurutucular, Kesme akinaları,
EPS Karışım Ünitesi, Geri Dönüşüm Makinaları, Silo Sistemleri, Ambalaj Makinaları