Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'tribe_events_after_header', 'add_event_category_description' );
- function add_event_category_description() {
- // Does this request relate to an event category? Which one?
- $category = $GLOBALS['wp_query']->get( 'tribe_events_cat' );
- if ( empty( $category ) ) return;
- // Load the category object
- $category = get_term_by( 'slug', $category, TribeEvents::TAXONOMY );
- if ( false == $category ) return;
- echo apply_filters( 'the_content', $category->description );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement