LogCloud

Download

LogCloud can be downloaded from the LogCloud page at the WordPress plugin repository.

Description

LogCloud provides a shortcode that generates a tag cloud much like the built-in WordPress tag cloud. Instead of scaling the font sizes linearly, the sizes are scaled using a logarithm scale.

If you use your tags with approximately equal frequency, the normal linear scale works just fine. However, if you tag your posts such that just a few tags predominate, the linear scale results in one or two very large looking tags in your cloud, and everything else will use a couple of font sizes at the lower end of the scale. A log scale cloud will result in a more even distribution for this situation.

Usage

To use logcloud, insert the logcloud shortcode anywhere you want a tag cloud to be.

The following attributes may be added to the shortcode:

  • smallest – smallest font size to use (default 8)
  • largest – largest font size to use (default 22)
  • unit – CSS unit for sizing fonts (default ‘pt’)
  • number – number of tags to display (default 45). use 0 to display all tags.
  • format – ‘flat’ or ‘list’ (default ‘flat’)
  • orderby – ‘name’ or ‘count’ (default ‘name’)
  • order – ‘ASC’, ‘DSC’ or ‘RAND’ (default ‘ASC’)
  • exclude, include – tag slugs to exclude or include
  • link – ‘view’ or ‘edit’ (default ‘view’)
  • min_usage – minimum count for a tag to be displayed (default 0)
  • usecolors – whether to scale colors as well as font sizes (default 0)
  • mincolor – hex color code for the ‘minimum’ color to use (all six digits required) (default ‘#000000′)
  • maxcolor – hex color code for the ‘maximum’ color to use (all six digits required) (default ‘#FFFFFF’)

For example:

[logcloud min_usage='2']

Live example

The Rat’s Reading index currently uses LogCloud 4.0 for it’s tag cloud display.

Version History

  1. Initial version. Clone of WordPress tag cloud code with shortcode added (and log scaling replacing linear scaling).
  2. Added min_usage argument (similar to Simple Tags tag cloud)
  3. Added a widget for use in widgetized sidebars
  4. Added color scaling (same style that Simple Tags uses)

Future features

  • Add inclusion/exclusion by tag slug instead of term id
  • Add internationalization
  • Add multi-widget (2.8) capability
  • ? You tell me.

20 Responses to LogCloud

  1. Valentin says:

    Great ! But the shortags don’t work ^^
    ex : ( [logcloud orderby='count'] )

  2. Li-An says:

    No color option ? I like the concept but colored tags are much easier to read…

  3. Li-An says:

    Ok, I will wait for it. Maybe you could give the function in your readme.txt.

  4. Li-An says:

    Hello,
    some news about updating your plugin ? I am testing a plugin with different colors for tags for WP and I was asking myself if I could make you meet the author to get a Giant Tagcloud Plugin :-)

  5. Li-An says:

    GREAT WORK ! It’s perfect. I don’t know if you want to internationalize it. If not, I will try to make a french version. My cloud is much better. And I will try to find a solution to mixed it with the different colours plugin :-)

    • King Rat says:

      There’s not a lot to internationalize, but I’ll put that on the list. I’d still need translations, as my only non-English language is German, and that’s pretty rusty.

  6. Li-An says:

    Ok, I will wait for next version :-)

  7. John says:

    Great upgrade. Plus works well with the Blibahblubah Tag Cloud.

  8. Loki says:

    Loving this plugin (I’ve looked at all the ones on the WordPress site, and this is the best Tag Cloud widget I’ve found), but having a problem getting it to exclude tags. I’ve tried using both the tag text and the slug text in the Exclude box, but neither seems to work. I’m running 2.7.1 with version 4.0 of the plugin.

  9. AlbanBadger says:

    I just wanted to know how you use color in the Tag Cloud? I don’t see how mincolor or maxcolor work… Can you help me?

  10. Bryan says:

    Hi – great plugin, Philip!! I wanted to point out a minor bug to you. It occurs whenever the user happens to have the same number of each unique tag entry. The plugin reports a ‘divide by zero’ error in line 206 because the $min_count and $max_count are the same. Of course, this scenario doesn’t happen much in practice, but I ran into the error when playing around with the plugin on my new site. The fix is easy and would improve the plugin’s usability; it just requires an extra if/else statement. I have fixed it on my site and would be happy to send you the fix if you need it– Cheers!

  11. fffffffff says:

    Just wanted to thank you for this plugin. I have horribly disproportional tag usage (almost 400 for one, 17 for my next highest), so this is exactly what I needed for the cloud to mean anything.

    I’m using 2.8 which it’s not listed as compatible with, but it seems to be working alright as far as I can tell. It doesn’t work with 3-digit hex codes, though.

    My biggest suggestion would be to list the defaults by the field’s name.

  12. Jonathan says:

    Thanks! this makes things look so much better. Is there a way that I can make it so that the tags are not displayed in bold weight?

    • King Rat says:

      Nothing in LogCloud forces display in bold font weight. If your tags are showing in bold weight, it’s likely because your theme styles the included classes as bold, or styles < a > anchor tags as bold, or something along those lines.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>