Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // get event category function - for The Events Calander plugin ##
- function ql_get_events_cat() {
- $current_category = get_the_terms( get_the_ID(), "tribe_events_cat" );
- if ( !empty( $current_category ) ) {
- foreach ( $current_category as $term ) {
- $cats[] = $term->name;
- }
- }
- // take first ##
- return $cats[0];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement