Support » Plugin: The Events Calendar » [Plugin: The Events Calendar] Calendar not showing dates in different year

Viewing 3 replies - 1 through 3 (of 3 total)
  • Jake I ran into a similar issue with the list widget not displaying the dates for multiday events. The fix I employed was to edit the events-list-load-widget-display.php file that you can override within your theme.

    Code Removed (lines 45 – 53):

    echo tribe_get_start_date( $post->ID ); 
    
    if( tribe_is_multiday( $post->ID ) || !$event->AllDay ) {
       echo ' - ' . tribe_get_end_date($post->ID);
    }
    
    if($event->AllDay) {
      echo ' <small>('.__('All Day','tribe-events-calendar').')</small>';
    }

    Code added in its place:

    $st_date = date("F j, Y", strtotime($event->StartDate));
    echo $st_date;
    
    $en_date = date("F j, Y", strtotime($event->EndDate));
    if ( $st_date !== $en_date ) {
       echo ' - ' . $en_date;
    }

    This was on an install of 2.0.2 of the plugin and WP 3.3.

    Awesome. Thanks eppand. I’ll give that a whirl.

    Plugin Author Rob La Gatta

    (@roblagatta)

    Modern Tribe Support

    Thanks for the tip, Eppand.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: The Events Calendar] Calendar not showing dates in different year’ is closed to new replies.