Archives by tag
"; $links = array(); foreach(get_tags() as $tag) { $links[] = "$tag->name ($tag->count)"; } $links = implode(', ', $links); } elseif ($archives=='week' || $archives=='month' || $archives=='year') { print "Archives by $archives
"; $links = " "; wp_get_archives(array('type'=>$archives.'ly', 'show_post_count'=>true)); } if($links) { print "$links
"; } else { print "No archives found. Use the menu to navigate the site, or search for a keyword:
"; include (TEMPLATEPATH . "/searchform.php"); } ?>