Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How would I create a list that only shows the ten most used tags for my site? Kind of how Delicious organizes tags. Any ideas?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Easy with get_tags(). Basic idea would be something like this:

$args = array(
        'orderby' => 'count',
        'order' => 'DESC',
        'number' => 10,
        );

$tags = get_tags( $args );
share|improve this answer
    
Thanks! That with a foreach loop to generate the html did the trick. –  zac Jan 26 '11 at 11:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.