[wp-trac] Re: [WordPress Trac] #4610: Default theme (Kubrick): add the tag cloud for WP 2.3

WordPress Trac wp-trac at lists.automattic.com
Sat Jul 14 03:53:03 GMT 2007

#4610: Default theme (Kubrick): add the tag cloud for WP 2.3
 Reporter:  albaran      |        Owner:  anonymous  
     Type:  enhancement  |       Status:  new        
 Priority:  normal       |    Milestone:  2.3 (trunk)
Component:  Template     |      Version:  2.3        
 Severity:  normal       |   Resolution:             
 Keywords:               |  
Comment (by JeremyVisser):

 Oh, and if you put it into the static sidebar, you'll want a widget for it
 as well. The following is in plugin form, but I'm sure it could be adapted
 in 60 seconds to be built-in to {{{widgets.php}}}.

         Plugin Name: Tag Cloud
         Plugin Author: Jeremy Visser
         Description: A sidebar widget which displays a tag cloud.

 function jv_tag_cloud_widget($args) {

         echo $before_widget;
         echo $before_title . 'Tags' . $after_title;

         echo '<div class="tag-cloud">';
         echo '</div>';

         echo $after_widget;

 function jv_tag_cloud_init() {
         register_sidebar_widget('Tag Cloud', 'jv_tag_cloud_widget');

 add_action('init', 'jv_tag_cloud_init');


Ticket URL: <http://trac.wordpress.org/ticket/4610#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list