Warning: Declaration of ThemeSwitcherWidget::update($new_instance) should be compatible with WP_Widget::update($new_instance, $old_instance) in /home/kingston/hitormiss/wp-content/plugins/theme-switcher/theme-switcher.php on line 0
Weighted Categories List in WordPress

Hit or Miss

Weighted Categories List in WordPress

Following the example of Flickr’s weighted list of photo tags (a bigger font size denotes more items), I created a simple plug-in for WordPress that creates a weighted list of post categories.

Check out my Archive Page for a sample or go to the project page.

27 responses so far (Respond)

Gravatar

Oh, that’s cool! Nice work. 🙂

Jason | 20 Dec 2004
Gravatar

Doenst seem to work in WP 1.2 Error: Division by zero or something.

Ryan | 20 Dec 2004
Gravatar

Warning: Division by zero in /home/parrfol/public_html/thoughts/wp-content/plugins/weighted_categories.php
on line 34

There is the error I get. Let me know if you fix it. I would really like to impliment this into my site. I think its cool!

Ryan | 21 Dec 2004
Gravatar

Here’s some examples of blogs using the plugin: somefoolwitha.com, sunfox.org

Matt | 22 Dec 2004
Gravatar

Implemented it myself a couple of days back. Love it. Cheers!

Hanni | 24 Dec 2004
Gravatar

I still cant get you code to work. I do have a ton of plugs and hacks in my version of wordpress. This may have something to do with it. However, I did find this which similar and not as nice as yours but works on my wordpress. I’ll probably switch to yours once I upgrade when to WP1.3; only when the final release comes out. Take a look:
http://frenchfragfactory.net/ozh/archives/2004/10/02/wordpress-category-map/

ryan | 27 Dec 2004
Gravatar

Hi!

I’m trying to use this plugin on a WP 1.5 install (1.5b1) and it seems to work fine for 3/4 categories, but the last one’s link doesn’t work.

This is the page: http://www.higgs-family.net/~jeremy/beta/archives

While all the others point to the proper URL, e.g. http://www.higgs-family.net/~jeremy/beta/archives/category/blah/, one category, called “Uncategorized” simply points to http://www.higgs-family.net/~jeremy/beta/Uncategorized

Does anyone know why this might occur?

Thanks a lot!

Jeremy Higgs | 5 Jan 2005
Gravatar

Doesn’t work for me–at all. $cats appears to be totally empty after list_cats() returns.

Elliott Back | 18 Jan 2005
Gravatar

Changing the first line to $cats = list_cats(1, ”, ‘name’, ‘asc’, ”, 1, 0, 1, 1, 0, 0, 1, 0, 1, ”, ”, $exclude, 0); returns some cats….yay…

Elliott Back | 18 Jan 2005
Gravatar

Like the way your blog is set up … I just got a type blog and I’m still trying to figure it out.

jennifer | 19 Jan 2005
Gravatar

Fernando is also using it http://fernando.dubtribe.com/

matthew | 6 Feb 2005
Gravatar

WordPress Heat Map plugin

The WordPress Heat Map plugin provides you with two new template tags for displaying a heat map (aka weighted list) of your categories and your monthly archives. Activity in any given category or month can be indicated by varying font sizes, color inte…

engadgeted.net | 10 Feb 2005
Gravatar

It’s working on my site. I am however experiancing the same problem as Jeremy, did anyone figure this out?

Thanks.

Steven Vu | 4 Jun 2005
Gravatar

I was having the same problem with all but the last category working, so I made the following fix:

if (strstr($catlink, “http:”) == FALSE) {
print “$catname n”;
} else {
print “$catname n”;
}

My categories are located in /blog/category, so I hard-coded it.

Theron Parlin | 12 Jun 2005
Gravatar

The code didn’t show up the way it should have, so if anyone wants to know how to fix this, email me at tparlin [at] thoughtmechanics [dot] com.

Theron Parlin | 12 Jun 2005
Gravatar

Great plugin! I use this with cat2tag… good combo.

I did, however, find a bug. After you explode $cats, the last element in the array is blank and not needed. This causes the last category in the list to have a bogus URL. To fix this, I added array_pop($cats) immediately after $cats is exploded. This gets rid of that last array entry.

Thanks for putting this together!

Rich

Rich Manalang | 29 Jul 2005
Gravatar

BTW, if you want to see the problem yourself. Go to your archive’s page, then click on the last category in your tag cloud.

Rich Manalang | 29 Jul 2005
Gravatar

The latent OpenURL idea has cystallized as COinS 1.0. The major change from earlier proposals is to hide the latent OpenURL in the title attribute of a span tag, rather than in the href of an anchor tag. Accordingly, I’ve updated the little WordPress plug-in I wrote to insert OpenURLs in WordPress postings. A sample link follows: [] (as before, you won’t see anything between the square brackets unless you have an activator). The plugin inserts a comment in the span tag containing a link to the spec. Download the new version here.

hut | 11 Aug 2005
Gravatar

Rich Manalang: I implemented the fix you suggested for Therons Popular Tags plugin, it works. But I also found that after doing this, the permalink is being displayed with the cad id rather than the tag. Any idea why this is happening.cheers.

Ravi | 23 Aug 2005
Gravatar

Nice Site!

Alex | 26 Aug 2005
Gravatar

yes, i saw the same problem when i implemeneted it. any solutions?

TS | 11 Sep 2005
Gravatar

The same problem (last category not display correctly) happen too when you have the category name other than English (in my case, Vietnamese). In my case: I have categories whose names are in Vietnamese. However, I also set the “category slug” as an English only characters. With this setup, all the link will work, except for the last one got by this plugin. Any solution yet?

leduytien | 22 Nov 2005
Gravatar

hitormiss.org: Weighted Categories List in WordPress…

Someone at Smarking has bookmarked your post….

Smarking | 27 Apr 2006
Gravatar

[…] Weighted Categories […]

WordPress Plugins! Squee!!! :: The Second Mouse Gets the Cheese | 28 Jun 2006
Gravatar

[…] Wighted Categories: Zeigt häufiger genutze Kategorien grösser an als wenig genutzte… […]

Pimp my Blog | adesigna.net | I did it my way | 20 Sep 2006
Gravatar

Sorry for your time…. Why i can’t see images on this resource?
My Browser is: Opera.
Thank you.

Green_Monkey23 | 13 Oct 2006
Gravatar

[…] Cloud – code Rewrite Wednesday, 07-Feb-2007 My Tag cloud implementation started from the Matt’s weighted-categories implementation on hitormiss. It was working fine but I needed two things (yeah, just […]

theSalmonFarm Blog Tag Cloud – code Rewrite | 7 Feb 2007