Skip to content

Instantly share code, notes, and snippets.

@crondeau
Created September 17, 2015 17:36
Show Gist options
  • Save crondeau/56c63669fb01d5dcd5f9 to your computer and use it in GitHub Desktop.
Save crondeau/56c63669fb01d5dcd5f9 to your computer and use it in GitHub Desktop.
Pull the terms and display them as a list of links.
<ul>
<?php
$terms = get_terms( 'taxonomy-name' );
foreach($terms as $term){
$term_link = get_term_link( $term );
echo '<li><a href="' . $term_link. '">' . $term->name . '</a></li>';
}
?>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment