So I had to fiddle allot with tag cloud to display it correctly. My script limits display to 5, and since I don't display all tags, I'd like wp to output list in descending order based on popularity. So if tag has most posts it will be displayed first, and so on... Is this possible? I have a hunch I've to modify get_the_tags(), but not sure how as of now... any help appreciated! :)
<?php
rewind_posts();
while (have_posts()) : the_post();
$posttags = get_the_tags();
$counttag=0;
if ($posttags) {
foreach($posttags as $tag) {
$counttag++;
echo '<li><a href="'.get_tag_link($tag->term_id).'">'.$tag->name.'</a></li> ';
if( $counttag >5 ) break;
}
}
endwhile;
?>
wp_tag_could()
maybe you should try output tag cloud with it