Help Desk

Bug with venue upcoming events

  • Posts: 44 Topics: 12
    | Permalink

    Take a look at http://saintpierre.delareunion.net/lieu/front-de-mer-de-saint-pierre/
    It’s a venue page. But it should list upcoming events and not past events.
    Is this a known bug ?

    Posts: 4278 Topics: 105 Answers: 467
    | Permalink

    Good catch, Julien – that’s a bug. We’ll get it patched up for the 2.1 release. Apologies for the inconvenience in the interim.

    Posts: 21 Topics: 5 Answers: 1
    | Permalink

    I see this issue as well. When is the scheduled release for 2.1?

    Posts: 4278 Topics: 105 Answers: 467
    | Permalink

    2.1 is coming in mid-January. We’ve got 2.0.2 ready for release either today or Monday, but this issue came in too late to make that release. We’re not having a 2.0.3 and are instead moving straight to 2.1, though not until after the holidays.

    Posts: 24 Topics: 13 Answers: 1
    | Permalink

    Is there a work around to this issue?

    Posts: 4278 Topics: 105 Answers: 467
    | Permalink

    Not one that we’ve documented, but I can see if one of our developers can write up a quick workaround in the interim.

    Posts: 24 Topics: 13 Answers: 1
    | Permalink

    Any joy with this yet Rob?

    Thanks
    Paul

    Posts: 4278 Topics: 105 Answers: 467
    | Permalink

    Hey Paul. Jonah is looking at this one over the coming week; the forums here are slowing down a bit this week (and will be even slower next week) on account of the holidays, so we’re not getting responses out as quickly as normal. But this should be addressed before the end of the week.

    Posts: 4021 Topics: 4 Answers: 763
    | Permalink
    Correct Answer

    Hi all, fortunately this is a pretty simple fix. Just copy single-venue.php from plugins/events-calendar-pro/views/single-venue.php to an ‘events’ folder within your theme (create it if it doesn’t exist. Then find this line (should be on line 45):

    $venueEvents = tribe_get_events(array('venue'=>get_the_ID()));
    

    And change to:

    $venueEvents = tribe_get_events(array('venue'=>get_the_ID(), 'eventDisplay'=>'upcoming')); 
    
    Posts: 24 Topics: 13 Answers: 1
    | Permalink

    Fantastic thats done the trick.

    Posts: 4278 Topics: 105 Answers: 467
    | Permalink

    Excellent! Thanks for confirming, Paul.

    Julien/Caleb: let us know if you’re still having issues after giving this a go.

    Posts: 44 Topics: 12
    | Permalink

    It’s OK for me ! Thanks.

    Posts: 4278 Topics: 105 Answers: 467
    | Permalink

    Excellent to hear. Thanks for confirming, Julien.

    Posts: 65
    | Permalink

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.