learning, thinking, blogging.
Category Cloud 1.0 – WordPress plugin
Category cloud is a wordpress plugin that shows categories as a tag cloud. You can see it in the sidebar at www.mapelli.info.
This is not the latest version! you may be intrested in the latest version of category cloud
Since the plugin I used before (weighted categories) does not support WordPress 2.1, I decided to develop Category Cloud on top of it and to add some useful features and a option page
Features
- Support for WordPress 2.1 (should work on older versions, but it’s not tested, I’ll be happy to have some feedbacks)
- Customizable max and min font size and unit (px, pt, em)
- Categories shown in ascending, descending or random order
- Possibility to exclude given categories
- Possibility to exclude categories with less than a given number of posts
- Full integration with wordpress administration panel
Installation Instructions
- Get Category Cloud zip file & Unzip it
- Upload category-cloud.php to your wordpress plugin directory
- Activate the plugin from the plugins tab
- Insert
<?php category_cloud();?>where you want your category cloud to appear - Play with the options (Options ->Category Cloud in the wordpress administration) to fit your needs
Get Category Cloud
Customization
Category Cloud can be customized via a style sheet, adding a categories entry.
Here’s mine:
#categories {
margin-left:20px;
margin-right:5px;
padding: 0px;
text-align: justify;
line-height: auto;
}
Tips
You can add “additional” tag clouds in a page by calling the category_cloud() function with a parameter, for example
<?php
$a = "smallest=8&largest=22&mincount=3&order=ASC";
category_cloud($);
?>
here are the valid variables and what they means:
smallestis the smallest font size in the resulting tag cloudlargestis the largest font size in the resulting tag cloudunitis the unit that it’s used for the font, can be one of- px
- pt
- em
excludeis a list of the excluded categories IDs, something like “1, 3, 15″orderis the order of the tags in the resulting tag cloud, can be one of- ASC
- DESC
- random
mincountis the minimum number of posts a category must have to appear in the resulting tag cloud
Comments and Feedback
I love them, so please don’t be shy and write something down here! :)
| Print article | This entry was posted by francesco mapelli on 2007/02/05 at 1:55 am, and is filed under Uncategorized. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |

about 5 years ago
Excellent, thanks for this! One thing I added manually to the plugin, and it would be nice if you could add that as an option, are before and after tags, so someone could create an unordered list, for instance.
about 5 years ago
thanks for the suggestion :)
I’ll try to add it to the next version!
about 5 years ago
thank you. i’m using it.
about 5 years ago
hi francesco,
I’m using the older version of weighted categories on a 2.0.x WP website (in dev). all of the categories are linking properly except for the parent categories when they have subcategories in them. They are linking like this:
http://www.mywebsite.com/Category Title
rather than this: http://www.mywebsite.com/categories/category-title.
any suggestions?
about 5 years ago
hi auschick :)
I thought you were using my plugin…
I’m sorry but I can’t offer support for code written by others…
The good news is that Category Cloud seems to works also with subcategories, so you can try and find if it works with your blog (and please, drop me a line and tell me if it did!)
about 5 years ago
Something I miss is a limitation of the tags shown. Theron Parlin once had that implemented in his adaptation of the weighted categories plugin, a long time ago…
about 5 years ago
I’m working on it :)
I’ll try to release a new version with
* before and after tags
* selection of the top n tags
at the beginning of the next week :)
about 5 years ago
Category Cloud 1.5 is out, with the requested features and color support!
you can download it from Category Cloud 1.5 homepage
about 4 years ago
I tried to use it and I got
Fatal error: Call to undefined function get_categories() in /www/justfree.com/b/r/a/braveout/htdocs/wp-content/plugins/category_cloud.php on line 86
could someone help me?
about 4 years ago
you have to upgrade wordpress, sorry. the get_categories function has been added in wp 2.1.
there’s also a newer and better version of my plugin, it’s linked at the top of the page, check it out.
about 3 years ago
hi there
about 2 years ago
going to use this tho always thought tags were a little spamie
about 1 year ago
I like this plugin!
about 1 year ago
Отлично, спасибо за это! Одна вещь, я добавил вручную плагин, и было бы хорошо, если бы вы могли добавить, что в качестве опции, то есть перед и после тегов, так что кто-то может создать маркированный список, например.
about 1 year ago
Yea I think I would want a limitation of the tags shown. There’s currently too many being shown – also tag coloring so you can have random colors themed to your design randomally selected for the category cloud.
about 1 year ago
Отлично, спасибо за это! Одна вещь, я добавил вручную плагин, и было бы хорошо, если бы вы могли добавить, что в качестве опции, то есть перед и после тегов, так что кто-то может создать маркированный список, например.
about 10 months ago
and soo good page.. thanks admin.