/ Published in: PHP
                    
                                        
Show the top tags by usage.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?php
function top_tags() {
$tags = get_tags();
return;
$tag_links[$tag->name] = get_tag_link( $tag->term_id );
}
$i = 0;
foreach ( $counts as $tag => $count ) {
$i++;
$tag_link = clean_url($tag_links[$tag]);
if($i < 11){
print "<li><a href=\"$tag_link\">$tag ($count)</a></li>";
}
}
}
?>
<h4>Top tags</h4>
<ul>
<?php
top_tags();
?>
</ul>
URL: http://daipratt.co.uk/tag/wordpress/
Comments
 Subscribe to comments
                    Subscribe to comments
                
                