[wp-trac] Re: [WordPress Trac] #5770: Add extra options for default tag-cloud widget

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 1 09:47:45 UTC 2009


#5770: Add extra options for default tag-cloud widget
----------------------------+-----------------------------------------------
  Reporter:  AndrewFrazier  |        Type:  enhancement            
    Status:  reopened       |    Priority:  low                    
 Milestone:  2.9            |   Component:  Widgets                
   Version:  2.5            |    Severity:  minor                  
Resolution:                 |    Keywords:  has-patch needs-testing
----------------------------+-----------------------------------------------

Comment(by AndrewFrazier):

 I'm having trouble working out just how number works; It appears to be the
 first N tags but irrelevant of whatever other options that may be set.
 IMO the other options should be applied first then the number last but
 this doesn't seem to be the case.  It may be possible to fix by editing
 the wp-generate_tag_cloud function in category_template.php, moving


 {{{
         if ( $number > 0 )
                 $tags = array_slice($tags, 0, $number);

 }}}

 from lines 640/641 down below


 {{{
         $font_step = $font_spread / $spread;

 }}}

 on line 654, but I haven't tested yet.




 With regard to the ordering, as the default is "ASC" (no matter what other
 options are set) you could change the Order dropdown to a checkbox for
 reverse order.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/5770#comment:31>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list