Tag List
-
I am using the following code in my sidebar to show the list of tags with count for each.
<?php $tags = get_tags( array('orderby' => 'count', 'order' => 'DESC') ); foreach ( (array) $tags as $tag ) { echo '<li><a href="' . get_tag_link ($tag->term_id) . '" rel="tag">' . $tag->name . ' (' . $tag->count . ') </a></li>'; } ?>
Is there a way to have only the top (for example) 15 tags to show in this list with a link below the tags to a page where I will show all my tags in a specific format, e.g. cloud.
Cheers,
Simon.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Tag List’ is closed to new replies.