Skip to content

Instantly share code, notes, and snippets.

@roblagatta
Created May 23, 2014 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roblagatta/9de92d07773a761d4fd8 to your computer and use it in GitHub Desktop.
Save roblagatta/9de92d07773a761d4fd8 to your computer and use it in GitHub Desktop.
<?php
global $post;
$day = tribe_events_get_current_month_day();
$event_id = "{$post->ID}-{$day['daynum']}";
$start = tribe_get_start_date( $post, FALSE, 'U' );
$end = tribe_get_end_date( $post, FALSE, 'U' );
// Maintain custom crafted excerpts
$data = tribe_events_template_data( $post );
$data = json_decode( $data );
$data->excerpt = $post->post_excerpt;
$data = json_encode( $data );
?>
<div id="tribe-events-event-<?php echo $event_id ?>" class="<?php tribe_events_event_classes() ?>" data-tribejson='<?php echo $data ?>'>
<h3 class="tribe-events-month-event-title summary"><a href="<?php tribe_event_link( $post ); ?>" class="url"><?php the_title() ?></a></h3>
</div><!-- #tribe-events-event-# -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment