Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $terms = get_terms("tribe_events_cat");
- $count = count($terms);
- if ( $count > 0 ){
- echo '<ul class="events-cat-menu">';
- foreach ( $terms as $term ) {
- echo '<li class="cat_'. $term->slug .'"><a href="'. get_term_link($term->slug, 'tribe_events_cat') .'">' . $term->name . '</a></li>';
- }
- echo '</ul>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement