[wp-trac] Re: [WordPress Trac] #8609: Tag cloud order priority is
broken
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 23 06:44:38 GMT 2008
#8609: Tag cloud order priority is broken
--------------------------+-------------------------------------------------
Reporter: brh | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: General | Version: 2.7
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Comment (by brh):
Try it with these options:
<?php wp_tag_cloud('format=list&orderby=count&order=DESC&number=10'); ?>
You'd expect the most common tags on top, right? You can just look at the
code, too - it does a "DESC" ordering in the select, then reverses it if
you have the "DESC" order option. Thus it selects the top 10 most popular
tags, and then displays them from least popular to most popular.
--
Ticket URL: <http://trac.wordpress.org/ticket/8609#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list