SHARE
TWEET

Single event meta: add venue thumbnail

BakerMan Mar 25th, 2014 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'tribe_event_pro_meta_venue_name', 'single_event_venue_thumb' );
  2.  
  3. function single_event_venue_thumb( $html ) {
  4.         $post_id = get_the_ID();
  5.         $venue_id = tribe_get_venue_id( $post_id );
  6.         $thumb = get_the_post_thumbnail( $venue_id );
  7.         return $thumb . $html;
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top