Blogging tips & www social trends
5 Feb
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
<?php category_cloud();?> where you want your category cloud to appear
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;
}
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:
smallest is the smallest font size in the resulting tag cloudlargest is the largest font size in the resulting tag cloudunit is the unit that it’s used for the font, can be one of
exclude is a list of the excluded categories IDs, something like “1, 3, 15″order is the order of the tags in the resulting tag cloud, can be one of
mincount is the minimum number of posts a category must have to appear in the resulting tag cloudI love them, so please don’t be shy and write something down here! :)
17 Responses for "Category Cloud 1.0 - Wordpress plugin"
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.
thanks for the suggestion :)
I’ll try to add it to the next version!
thank you. i’m using it.
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?
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!)
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…
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 :)
Category Cloud 1.5 is out, with the requested features and color support!
you can download it from Category Cloud 1.5 homepage
[…] I settled on http://www.mapelli.info/web20/category-cloud-10. The setup was pretty […]
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?
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.
hi there
going to use this tho always thought tags were a little spamie
I like this plugin!
Отлично, спасибо за это! Одна вещь, я добавил вручную плагин, и было бы хорошо, если бы вы могли добавить, что в качестве опции, то есть перед и после тегов, так что кто-то может создать маркированный список, например.
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.
Отлично, спасибо за это! Одна вещь, я добавил вручную плагин, и было бы хорошо, если бы вы могли добавить, что в качестве опции, то есть перед и после тегов, так что кто-то может создать маркированный список, например.
Leave a reply
Comments and trackbacks are dofollowed. Be sure to read my comment policy once in a lifetime before posting