SHARE
TWEET

Untitled

a guest Feb 17th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // Appends start time and venue to event titles
  3. function tribe_events_title_include_time_venue ($title, $id) {
  4.  
  5.     $separator = ' &raquo; '; // Separator between categories and title
  6.  
  7.     if (tribe_is_event($id) && !is_single()) {
  8.         $title = $title . $separator . tribe_get_start_time() . $separator . tribe_get_venue();
  9.     }
  10.  
  11.     return $title;
  12. }
  13. add_filter('the_title', 'tribe_events_title_include_time_venue', 100, 2);
RAW Paste Data
Top