Blogging tips & www social trends
11 Feb
Category Cloud 1.5 is a wordpress plugin that shows categories as a colored 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
<?php category_cloud();?> where you want your category cloud to appear<div id="category_cloud">...</div> tag.
Category Cloud can be customized via a style sheet, adding a category_cloud entry.
Here’s mine:
#category_cloud {
margin-left:20px;
margin-right:5px;
padding: 0px;
text-align: justify;
line-height: auto;
}
also, you can use the before and after fields in the option page to add further customization, e.g. by adding <span> or <li> tags before and after each category, and use css to restyle them.
You can add “additional” tag clouds in a page by calling the category_cloud() function with a parameter, for example you can show the top 5 categories with
<?php
$a = "smallest=8&largest=22&order=POP&numitem=5";
category_cloud($a);
?>
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 cloudnumelements the number of categories to showbefore what to put before each categoryafter what to put after each categorystartcol the color for the categories with less postsendcol the color for the categories with more postsI love them, so please don’t be shy and write something down here! ![]()
Also, if you write a comment and leave the “notify me of followup comments via e-mail” option checked, you will be mailed when bugs, feature requests or new versions are posted.
52 Responses for "Category Cloud 1.5 - Wordpress Plugin"
[…] Category cloud is a wordpress plugin that shows categories as a tag cloud. You can see it in the sidebar at http://www.mapelli.info. This is not the latest version! you may be intrested in the latest version of category cloud […]
WOW! Thanks SO much! I was previously using a plugin called “weighted categories” but Wordpress 2.1 broke and I found you plugin in the comments on that page. My site’s structure relies heavily on the use of tags and you plugin is so much more elegant than the last, if only for its beautiful use of colors. Thanks so much.
Thank you Francesco for your elegant plugin!
http://www.geuzen.org/female_icons/?cat=165
Femke
Thank you very much for your work on this plugin. It has made the categories on my church’s website far more manageable.
One thing that broke in 2.1 is how subcateogries work. If you exclude a main category you exclude all sub categories as well. If it is possible how can you make a limited, weighted list with just a bunch of sub categories without showing the main category?
@everybody: thanks for your support and feedbacks
@Omo, I’m not sure I understand what the problem is: grouping sub-categories it’s what a category it’s supposed to do…it’s normal thet if you exclude a main category all the subs are excluded… if you need to exclude the main category without excluding some of the sub categories maybe you should change your category tree
what i can do it’s a sub-category cloud, i.e. a cloud of the sub categories of a given category… is this going to help?
[…] Check it out. Blogging, Catergory, Could, Plugin, WordPress […]
Thanks a lot, it’s exactly what I was looking for.
happy to hear that!
[…] Category Cloud 1.5 is the latest release of Category Cloud, a wordpress plugin that shows categories as a colored tag cloud. You can see it in the sidebar at the footer panel of this blog. I use this plugin as tags and category as it should be. You can also follow this link: http://www.mapelli.info. […]
Is there any way to show the number of posts per category?
Hi John,
the current version does not allow you to show the post count (it’s showed only in the tool tip text), I’ll try to add it to the next version (coming out soon as I have to fix a couple of stupid bugs).
Stay tuned
Ordering my posts doesn’t seem to work. The order goes: 5, 50, 7, 70
[…] just to give people an idea of what the blog is about. I got this very cool Wordpress Plugin from here. […]
I used it, and this really amazing. Thanks
[…] der Zwischenzeit arbeitet hier aber Category Cloud, eine andere Weiterentwicklung des originalen Codes. Und mir kommen da gerade ganz neue […]
Thanks for the plugin. I’ve followed your instructions and after adding the php line in the sidebar I got this message:
Fatal error: Call to undefined function: get_categories() in /home/content/m/a/d/madeenavr360/html/wp-content/plugins/category_cloud.php on line 102
Any hints on what went wrong? I’m using wordpress 2.0.2.
It seems that the get_category function used by my plugin is available only since wordpress 2.1… I think you should upgrade your wordpress installation if you want my plugin to work.
Sorry about that
Finally, finally, finally I found someone who made category tagging beautiful, simple and in a thoughtful way. The opportunity to make more than one cloud with different categories and styling in them creates infinite possibilities. You are what pi is to maths.
Thanks so much…update this one until WP 7.3 at least!
P.
The above comment still holds true, but (hahaha):
is it possible to have the following:
* include is a list of the included categories IDs, something like “1, 3, 15″
I’m just not the type for typing.
P.
P.Work,
Thanks for your comment, I’m happy you liked my plugin
I’m not sure of what you’d like me to add…
is it a list of category to use? so if I put 1, 2, 3 the category cloud will show only category 1, 2 and 3?
let me know, and I’ll try to add it to the next release.
Hi Francesco,
Yep, that’s what I mean. It would be the only feasible way when you have 100+ categories and in a particular cloud you only want to display 20 specific categories. Or can I avoid typing 90 id’s of categories to exclude with the plugin as it is now? Is coding this ‘include categories option’ possible, you think?
@francesco what i can do it’s a sub-category cloud, i.e. a cloud of the sub categories of a given category… is this going to help?
Yea it would. I add sub-categories to this one category all the time, and it would be impractical edit my template every time I add a new sub-cat as a workaround by bumping everything up. Unless, of course, if I just avoid linking my static cats…
ok, so I’ll try to add both this features
* sub category cloud
* include only listed categories
but you have to be patient, as I’m a bit busy with my work in this days
Thanks Omo, that’s a good one, I could use that because in most instances where I want a cloud for some, not all categories would be a collection of sub categories.
Great Francesco, it’s good to see you’re willing to adapt your plugin to good uses.
I have one other problem. I have a site with articles, videos and podcasts and these three main categories share a lot of themes that I want to use as subcategories. But subcategories can’t have the same name, so I can’t put subcategory ‘Simpsons’ in all three main categories. My solution is to add a # or * at the end of these categories which serve to make the subscategories unique and which look to the visitor as separators between categories in the cloud.
Has anyone found a better solution?
Francesco, don’t forget to sleep…
Wonderful plugin! Thanks a lot for developing such a cool plugin. I just tried it on my blog and am highly satisfied with the results.
- Avi
[…] Category Cloud (v. 1.5) is a WordPress plugin that shows categories as a colored tag cloud. You can see it live in my sidebar. Take a look at the “Top Categories” section. […]
Excellent plug-in! I’ve used it as the basis for a K2 Category Cloud module - see http://netcetera.org/2007/03/2.....s-with-k2/
Many thanks for providing such a cool plugin.
Hi again Francesco,
Do you have any idea when you could finish working on the addition of including categories/showing sub-categories? I’m trying to figure out whether doing very much work (excluding tens of categories in about 7 clouds) is necessary…
Don’t want to rush you, just trying to get information. I’m sticking with your plugin.
P.Work
Hi
I’m still not sure how long it will take the sub-categories thing, as I started with some bugfixing and the update checker feature (almost complete now)
Anyway, I hope to finish the coding in the next weekend, and release the new version in the first week of april…
This weekend has been an hard one, since friday was my birthday, and you know how it goes
f
Buon compleanno…or something like that…
Thanks for the rapid answer! April’s fools day and the like.
[…] Category Cloud 1.5 - Wordpress Plugin […]
Cool cloud-plugin! Nice work… I have been looking around for something like this for some time now… easy to implement, use and customize…
There seems to be an issue with ordering options though, what ever I choose the categories are outputted in random order. But since i prefer random ordering - it doesn’t affect my use of it!
-Regards
that’s strange, since -as you can see from my sidebar- other sorting options works well with me…
anyway, since I’m working on the next version, I’ll have a look at that issue too
Thanks!
Hi again!
..a little more on the sorting issue: The sorting option does have an effect, but when the number of times the category has been linked (post count) exceeds one digit (i.e. 10 and onwards) it fails!
An example: I have a category that is linked to 12 posts, when sorted by [#posts(Asc)] it is placed between categories linked once and twice: 1 12 2 3… (seems to be the similar issue reported above by Tim Wheatley on March 7.)
-Regards
Good point!
It must be a text comparison instead of a numerical one.
Thanks for the report, i’ll fix it in the next version (it seems I have a lot of bugfixing work to do ;))
Thanks again, this is really a great hint for me
[…] Category Cloud 1.5 - Wordpress Plugin […]
Hi Francesco… my cloud is more of a, …well, a list.
any ideas?
Hi Sam, thanks for your comment,
you’ve got a <br /> tag after each category… so it goes on the next line… but I don’t know why… my plugin does not use <br /> tags at all.
maybe you have some other plugins or editors interacting with how the page is showed? something that changes the /n in the html code to <br />?
You may try to use <li> and </li> as before and after tag, and displaying them inline with css…
or, you can wait few days, cross your fingers and try the next version of category cloud… maybe it works…
let me know if you find a solution.
btw, you’ve a nice site, I like the clean design!
Thanks, I’m in the middle of a major re-jig, to try and make my 3 sites really simple (mostly to ease the load on my own brain)
Hrmmm. It plays nice if i put it in the sidebar, or post footer, or basically anywhere except in its own page(or post)… now if only i can spontaneously wrap my head around the inside/outside the loop idea, i should be able to figure something out. lol. I think I’ll wait till the new version comes out first before i start pulling things apart just yet. Thanks for the feedback. I will let you know if i figure it out.
Cheers, Sam.
I too would like the ability to exclude a parent category, but still include the child (sub) categories. Perhaps the best way to do this, without interfering with other functionality would be a checkbox called “Hide Parent Categories if Children Exist”.
I have setup a hierarchy of categories and it just doesn’t make sense (in my case) to display any of the parent categories if there are sub categories. I don’t actually assign any posts to the parent category if there are children, only to the sub category. So showing the parent category doesn’t make much sense either.
Other than that it is a perfect implementation of what I need and works extremely well. Thanks!
Tim,
I finished the code for the next release of Category Cloud, (v 1.6, will be released as soon as I finish the testing and write the documentation) so you’ll have to wait till the next next one… but in v 1.6 there’s a option to list only the subcategories of one or more given categories, so I think you’ll be able to get what you want.
Stay tuned!
Yummie, yummie, yummie, I got expectations in my tummie. So you succeeded, Francesco, in making clouds of categories and subcategories. What a Good Thursday it was….
Here we are!
Category Cloud 1.6 has been released… I think I added all the feature you requested…
give it a try!
Has anyone been sucessful in getting this plugin to work on earlier versions of Wordpress? I can’t upgrade to WP 2.1. because my webhost doesn’t have the most current version of mySQL running, I currently have WP 2.0.2
I have the plugin activated and the options panel is present in my admin panel, but when I paste the code into my sidebar (or anywhere for that matter) it won’t show up. I would love to get this to work, this is an awesome plugin
Thanks
Melissa,
I am sorry, but this plugin requires wordpress 2.1+ to work
Cool plugin, thanks!!!
Hi,
I really cant understand how to use this because it seems WordPress doesnt allow plugins..Please help.
Soham,
Wordpress.com does not allows plugin installation… they’re really restrictive with what you can do (they don’t even allow you to change your css…)
You need a self-hosted wordpress installation to add category cloud or any other third-party plugin, sorry.
I just need it. Thanks for sharing it. I will try it.
I love WP- its best CMS I ever seen
can we use category cloud with tagcloud?
Leave a reply
Comments and trackbacks are dofollowed. Be sure to read my comment policy once in a lifetime before posting