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