Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $taxonomy = 'nivo_cat'; //replace nivo_cat by your taxanomy name
- $terms = get_terms($taxonomy); // Get all terms of a taxonomy
- if ( $terms && !is_wp_error( $terms ) ) :
- ?>
- <ul>
- <?php foreach ( $terms as $term ) { ?>
- <?php echo $term->name; ?> <br />
- <?php } ?>
- </ul>
- <?php endif;?>
Advertisement
Add Comment
Please, Sign In to add comment