Advertisement
BakerMan

Eliminate the second date

Sep 24th, 2012
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. // Find this chunk of code (in events-advanced-list-load-widget-display.php
  2. // - near the top):
  3. if( tribe_is_multiday( $post->ID ) || !$event->AllDay ) {
  4.     echo ' – <br/>'. tribe_get_end_date($post->ID );
  5. }
  6.  
  7. // Change it to the following (note the extra parameters we are adding to the
  8. // tribe_get_end_date() function ... the single space between the single quotes
  9. // is deliberate)
  10. if( tribe_is_multiday( $post->ID ) || !$event->AllDay ) {
  11.     echo ' – <br/>'. tribe_get_end_date($post->ID, true, ' ' );
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement