$args = array( ‘hide_empty=0′ );

$terms = get_terms(‘my_term’, $args);
if ( !empty( $terms ) && !is_wp_error( $terms ) ) {
$count = count($terms);
$i=0;
$term_list = ‘

‘;
foreach ($terms as $term) {
$i++;
$term_list .= ‘