Top Cat WordPress plugin version 1.2

Thursday, 7 December 2006

I have updated Top Cat to version 1.2. Top Cat is a WordPress plugin that allows you to specify a main category for your posts. It also provides template tags for displaying the main category or using it in themes. The canonical example of Top Cat use is my Bennettarium blog. (I wrote Top Cat to help convert the blog over to WordPress.)

There are just a handful of changes in this version. When saving a post: if there is only one category set but no main category, then that single category becomes the main category. There is also a breaking change: the topcat_the_main_category_id() template tag now has only one optional argument (it used to have three). In the unlikely event that you were using the before and after arguments, they will now be ignored. Those arguments didn’t make much sense anyway.

And there’s also a bug fix or two. (Thanks to Alfredo for pointing one out.)

The most useful addition is not even in the plugin. On the main Top Cat page, there’s now a short example explaining how to use Top Cat to make your posts change colour according to their main categories. you still need to be at least a bit familiar with HTML, CSS and PHP, but it should at least point you in the right direction.

You can get full details and download Top Cat at the main Top Cat page.



You can leave a comment, or trackback from your own site.

  1. Good plugin, this is what I was looking for since long time…

  2. I gotta favorite this internet site it seems very useful very useful

  3. Kudos to the author for putting together such a well-researched and thought-provoking article

Leave a comment