Display Custom Taxonomy Tags Outside the Loop

Insert this in your template file OUTSIDE the loop.

Code Snippet:

$terms = get_terms('terms','hide-empty=0&orderby=id');
shuffle($terms);   // dlete this line if you don't want it random.
$sep = '';
foreach ( $terms as $term ) {
    if( ++$count > 60 ) break;   // number of tags here.
    echo $sep . '<a href="'.get_term_link($term).'">'.$term->name.'</a>';
    $sep = ', ';  // Put your separator here.
}

Posted in Pure hacks