Skip to content

Instantly share code, notes, and snippets.

@jo-snips
Created March 12, 2012 03:21
Show Gist options
  • Select an option

  • Save jo-snips/2019513 to your computer and use it in GitHub Desktop.

Select an option

Save jo-snips/2019513 to your computer and use it in GitHub Desktop.

Revisions

  1. jo-snips revised this gist Mar 13, 2012. No changes.
  2. jo-snips created this gist Mar 12, 2012.
    11 changes: 11 additions & 0 deletions event-category-list.php
    Original 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>';
    }
    ?>