Created
July 31, 2017 06:53
-
-
Save philliproth/98beab0a47720187b108d329dd586401 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$terms = get_terms( 'countries' ); | |
if ( $terms && !is_wp_error( $terms ) ) { | |
echo '<ul>'; | |
foreach ( $terms as $term ) { | |
echo '<li><a href="' . get_term_link( $term->term_id ) . '">' . $term->name . '</a></li>'; | |
} | |
echo '</ul>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment