Skip to content

Instantly share code, notes, and snippets.

@jesseeproductions
Created September 26, 2014 22:39
Show Gist options
  • Save jesseeproductions/ab83edf2c65da0d15f89 to your computer and use it in GitHub Desktop.
Save jesseeproductions/ab83edf2c65da0d15f89 to your computer and use it in GitHub Desktop.
Get Terms of Current Event and Display in a List without links
//Get Terms of Current Event and Display in a List without links
$terms = wp_get_post_terms(get_the_id(), 'tribe_events_cat', array("fields" => "all"));
if ( !empty( $terms ) && !is_wp_error( $terms ) ){
echo "<ul>";
foreach ( $terms as $term ) {
echo "<li>" . $term->name . "</li>";
}
echo "</ul>";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment