• Resolved dennisperremans

    (@dennisperremans)


    I’ve created a loop that shows the events.

    
    $events = tribe_get_events();
    if ( empty( $events ) ) {
        echo 'Sorry, nothing found.';
    } else foreach ($events as $event) {
       echo get_the_title( $event );
       echo tribe_get_start_date( null, false, 'j F Y' ):
    }
    

    But the function tribe_get_start_date always gives the current date instead of the event date.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there @dennisperremans!

    Thanks for reaching out — sorry to hear that you are experiencing difficulties.

    The line:
    echo tribe_get_start_date( null, false, 'j F Y' ):

    Contains a colon at the end which needs to be a semicolon.

    Hope that helps!

    Hey there,

    Since this thread has been inactive for a while, I’m going to go ahead and mark it as resolved. Don’t hesitate to create a new thread any time you help again!

    Ed 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘tribe_get_start_date gives current date issue’ is closed to new replies.