Skip to content

Instantly share code, notes, and snippets.

@ckpicker
Created August 8, 2012 02:20
Show Gist options
  • Save ckpicker/3291479 to your computer and use it in GitHub Desktop.
Save ckpicker/3291479 to your computer and use it in GitHub Desktop.
New EC Widget Code
if( tribe_is_multiday( $post->ID ) {
//Don't include the time
echo tribe_get_start_date($post->ID, false, 'F j, Y');
} else {
echo tribe_get_start_date( $post->ID );
}
if( tribe_is_multiday( $post->ID ) || !$event->AllDay ) {
//Don't include the time
echo ' - ' . tribe_get_end_date($post->ID, false, 'F j, Y');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment