Rick Richardson

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Day view showing Jan, 1 1970 as the date on all pages #1090767
    Rick Richardson
    Participant

    Hey Brook,

    I finally figured out what was causing the date display issue. It was actually one of the previously suggested fixes for the title issue that I had tried to implement, and never removed after it did not solve that problem. It was the block of code to add into the functions.php file. Just thought I’d let you know what caused the issue in case someone else is trying to fix their titles, and then reports this issue as well.

    <?php
    add_filter(‘tribe_get_events_title’, ‘my_get_events_title’);
    function my_get_events_title($title) {
    if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page
    return ‘Events Calendar’;
    } elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages
    return ‘Events Calendar’ . ‘ » ‘ . single_term_title(”, false);
    } elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List
    return ‘Events List’;
    } elseif( tribe_is_event() && is_single() ) { // Single Events
    return get_the_title();
    } elseif( tribe_is_day() ) { // Single Event Days
    return ‘Events on: ‘ . date(‘F j, Y’, strtotime($wp_query->query_vars[‘eventDate’]));
    } elseif( tribe_is_venue() ) { // Single Venues
    return $title;
    } else {
    return $title;
    }
    }
    ?>

Viewing 1 post (of 1 total)