List Custom Taxonomy

Display your custom taxonomy

<select>
<option>Find Factory:</option>
<?php
	$terms = get_the_terms($post->ID, 'store');
	$count = count($terms);
		if ( $count > 0 ){
			foreach ( $terms as $term ) {
				echo "<option>" . $term->name . "</option>";
			}
		}
?>
</select>

Outside loop:

<?php
$terms = get_terms('media_cat','hide_empty=0&orderby=id');
foreach ( $terms as $term ) {
if( ++$count > 60 ) break;   // number of tags here.
echo '<li class="'.$term->slug.'"><a href="'.get_term_link($term).'">'.$term->name.'</a></li>';
}
?> 

Leave a Reply

Your email address will not be published. Required fields are marked *