Created
March 12, 2012 03:21
-
-
Save jo-snips/2019513 to your computer and use it in GitHub Desktop.
Revisions
-
jo-snips revised this gist
Mar 13, 2012 . No changes.There are no files selected for viewing
-
jo-snips created this gist
Mar 12, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ <?php $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>'; } ?>