learning, thinking, blogging.
Category Cloud 1.6 – WordPress Plugin
Category Cloud 1.6 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 www.mapelli.info.
New Features
- Option to display only subcategories of given categories
- Option to include specific categories
- Option to show post count near each category
- Automatic Search for updates (weekly)
- Fixed sorting bug
- Minor bug fixing
V 1.5 Features
- before and after tags
- categories can be sort by ascending or descending number of posts
- option to show a fixed number of categories (this way you can do a “top 10 categories”)
- colored cloud, with colors based on the importance of each category
v 1.0 Features
- Support for WordPress 2.1 (does not work with previous versions, sorry!)
- 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
Installing Category Cloud Plugin
- 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 if (function_exists('category_cloud')) 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
Upgrading Category Cloud Plugin
- Get Category Cloud zip file & Unzip it
- Upload category-cloud.php to your wordpress plugin directory, overwriting the previous version
- Play with the new options (Options ->Category Cloud in the wordpress administration) to fit your needs. Options from previous version will be lost.
- Upgrade your css, if you need to:
Get Category Cloud
Customization
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.
Tips
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 = "ccloud_smallest=8&ccloud_largest=22&ccloud_order=POP&ccloud_numitem=5";
category_cloud($a);
?>
here are the valid variables you can use and what they means:
ccloud_smallestis the smallest font size in the resulting tag cloudccloud_largestis the largest font size in the resulting tag cloudccloud_unitis the unit that it’s used for the font, can be one of- px
- pt
- em
ccloud_excludeis a list of the excluded categories IDs, something like “1, 3, 15″, or you can use ALL to exclude all the categoriesccloud_includeis a list of the categories to include, something like “1, 3, 5″ccloud_subofis a list of the categories to search for subcategories to include. e.g. using “15, 3″ will display a tag cloud with the subcategories of category 15 and 3ccloud_showcountdisplays or hides the number of posts in each category. Valid values are- true
show the post count - false
hide the post count
- true
ccloud_orderis the order of the tags in the resulting tag cloud, can be one of- ASC
sort by name, ascending - DESC
sort by name, descending - random
random order - POP
sort by popularity, descending - UNPOP
sort by popularity, ascending
- ASC
ccloud_mincountis the minimum number of posts a category must have to appear in the resulting tag cloudccloud_numelementsthe number of categories to showccloud_beforewhat to put before each categoryccloud_afterwhat to put after each categoryccloud_startcolthe color for the categories with less postsccloud_endcolthe color for the categories with more posts
Comments and Feedback
I 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.
| Print article | This entry was posted by francesco mapelli on 2007/04/10 at 12:30 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 4 years ago
Thank you so much n37, it works now :)
And thank you francesco for your great plugin, I will download the new version when it will be out ! :)
about 4 years ago
np m8… :)
@francesco:
if do you want some help on the new release but you haven’t got time, please send me an email and i try to help you update that great plugin… ;)
Best regards to all.
about 4 years ago
You are god!
about 4 years ago
Hey,
The Category Cloud 1.6 isnt working on on blog. WP 2.1.3 with the i3theme (http://www.mangoorange.com/)
Please help. It didn’t work when I tried inserting the code in the Widgets. My whole sidebar is made of widgets. Its a hell lot of work to manually shift :(
about 4 years ago
it is great, thank you!
about 4 years ago
I really like the widget and have recently installed it, however, I am unable to modify any of the attributes of the widget. I am not sure if I can or not. The options interface seems to be ineffective. I am currently using WordPress 2.3
about 4 years ago
I just thought I’d mention it here, as an idea for the next release of Category Cloud: now that WP2.3 supports checking for plugin versions (if they’re hosted on wp-plugins.net) you could consider hosting the plugin there and removing the version checking.
Just an idea.
Thanks for all your work!
about 4 years ago
VjoSqy 3v3445vtt075nvn0g8d0nb
about 4 years ago
Thanks, this is really a useful plugin, i like it…
about 4 years ago
I was trying to use this plugin, im doing something wrong or what… :S
I put this code into a text widget
so it should work right? .. Damn..
Any advice will be great.
about 4 years ago
Hey,
is there a possibility to change the plugin so that I can using the cloud with tags? I am looking for a tagcloud colored like yours and working with the current WordPress version. HELP ME!!
Robert
about 4 years ago
WARNING!: I don’t get CC to work on WP2.3.1
HELP!: Maybe I’m just dumb and need some assistance? Well, the header loads but the rest is a blank.
Any ideas?
about 4 years ago
I love this plugin! It does exactly what I need it to do but it does not validate…Is there a temporary fix for this?
about 4 years ago
Thanks for this great plugin! :-)
about 4 years ago
Thanks, really one of the best WP plugins i have seen, implemented and works perfect…
about 4 years ago
hi there,
is it possible to exclude all users to edit the plugin? it feels crappy if somebody would change the look on your site without you knowing that:)
cheers and thanks for great plugin!
about 4 years ago
thanks
about 4 years ago
great plugin… nice can find this plugin..thanks
about 4 years ago
i notice there is no replies here but i wish i could find an answer to my question
does this plugin helps to make the parent categories only appear and if yes how can i do that
about 4 years ago
queeneve,
you’ve to exclude the subcategories by listing them in the “excluded categories ids” field, or force only the inclusion of the main categories by adding them in the “included categories id”
hth
francesco
about 4 years ago
Exactly what I needed — thanks.
about 4 years ago
Thx for this great plugin!
about 4 years ago
[…] tips & www social trends « Category Cloud 1.6 Apr 17, 2007 at 10:53 pm about blogging, tips (No Ratings Yet) Loading […]
about 3 years ago
I’ve installed v. 1.6 of the plug-in and am on wp 2.3.2. I am trying to use it in my sidebar by putting the code in a php code widget. I would like to show only subcategories of category 117, which I put in the options. I did not specify any exclude, include or max categories. I do not have anything in the before or after code boxes. When I view it, I *very* briefly see the categories as I would hope to and then immediately it all changes to show “undefined” for every category. Very strange.
about 3 years ago
Ha, what a perfect plug-in! Set it up in 30 seconds and it does everything I need – well done!
about 3 years ago
I am not sure if someone has already reported this or not but there is a small glitch I found in the plugin version 1.6.
on line 218 there should be an space before style otherwise the plugin would work just fine but it won’t produce a valid markup. Adding a simple space solved this for me. I don’t know if we can write code here or not but i am trying below:
original:
$toprint.="style=\"font-size: $size$ccloud_unit; $color\">$cat->cat_name$count";
Fixed:
$toprint.=" style=\"font-size: $size$ccloud_unit; $color\">$cat->cat_name$count";
about 3 years ago
As James said above, perfect plugin! Very easy install and I like the range of config options. Thanks for releasing this.
about 3 years ago
Just Perfect ;)
about 3 years ago
Hi, there is a bug in your HTML output.
1. Code is invalid when using list elements because you can’t place a LI in a SPAN, and you can’t place a DIV in a UL.
2. It’s impossible to enter correct font-sizes when working with the em unit, due to both the link and its surrounding SPAN getting the font size. Since EM is relative to its container, a font size of 11px effectively turns into 12.1px.
I will edit the plugin code to remove the invalid code, but that of course will break the next time I need to update it. Could you perhaps make the SPANs an option that can be toggled on and off, and move the DIV somewhere else for your next update?
about 3 years ago
Nice plugin :)
about 3 years ago
I’m having a problem with the “Subcategories of” settings. I have a parent category, 23, with approximately 30 child categories. When I enter the number 23 into “Subcategories of”, none of the child category names appear, even those with posts. When I leave “Subcategories of” blank, all categories appear properly.
Any ideas?
I’m using WordPress 2.7 and v1.6 of your plugin.
about 3 years ago
Hi Francesco, I am running your plugin with WordPress 2.7.1.
I have problem every time I modify a parameter and then i click on “update options” button.
The browser (Firefox, IE, Opera, Safari) freezes and I have to kill it down.
The parameters are updated but I need to open a new browser session, login again in my WP admin panel and so on.
Is there a way to fix this issue?
Thank you! :)
about 3 years ago
Ops, I forgot to say I am using version 1.6 of your plugin.
about 3 years ago
Nice, thanks for sharing :)
about 2 years ago
Is it possible to only display the sub categories of a categories/archive page?
about 2 years ago
Very nice plugin! I very much like the setting options!
about 2 years ago
One question from me:
I want to align the cloud in the center, so that it will have a more “cloud-like” appearance.
But I can’t figure out where to put the style sheet info for a customisation.
And do I have to call it from somewhere?
Thanx 4 any help!
about 2 years ago
Okay, here is the answer to my own question from above:
it can be inserted into same widget as the PHP-if check.
Here is mine:
#category_cloud {
text-align: center;
line-height: auto;
}
about 2 years ago
I am not sure how this or any cloud effects on google. I have issuded some suggestions from google webmaster tool about duplicated meta tags, and all links that have duplicated tags was from cloud. Probably because more words from cloud lead to same page, and google somehow think it is different page with same meta tags.
The question is, are these clouds good or bad from google’s point of view
Any experience with this, If anybody understand what i was talking about :) .
Sorry for bad english
about 1 year ago
Hi, my english isn’t the best but I think by regularly visits of your blog it will be better in the next time. You have a good writing style which is easy to understand and can helps people like me to learn english. I will be now a regularly visitor of your blog.
about 1 year ago
Do you know if this plugin will work with WordPress 3.0?
Till then,
Jean
about 1 year ago
So, everyone must have this feature or else?
about 1 year ago
@used tires – it works fine on me. Nothing suspicious problem occured.
about 1 year ago
How could anyone let this happen. Poor child!
about 1 year ago
@Escort, okay thank you for that reply then! That’s great to know!
Till then,
Jean
about 1 year ago
Thank you so much this…
about 1 year ago
it is great, thank you!
i like it
about 9 months ago
really nice plugin, thanks for sharing it.
about 8 months ago
A great plugin, thank you for it.
about 8 months ago
Thx for this great Plugin
Greetings