Events listed by Venue displaying all events not just future events.

Home Forums Calendar Products Events Calendar PRO Events listed by Venue displaying all events not just future events.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #14124
    Jason
    Participant

    If I click on a Venue it shows all events dating back to the first event that this venue has in the database. How do I change this so that it only shows future events.

    #14133
    Jonah
    Participant

    Hi Jason, by default it should not be doing this. Do you have a custom single-venue.php file in place in an ‘events’ folder in your theme? Can you pastebin.com your custom single-venue.php if you have one?

    Thanks,
    Jonah

    #14142
    Jason
    Participant

    Hi Jonah, thanks for your prompt reply. No I don’t have a custom single.venue.php override in place. I haven’t started customizing anything yet.

    #14143
    Jonah
    Participant

    Would you mind emailing me WP admin access to jonahcoyote [at] gmail [dot] com so I can take a look at some things?

    #14205
    UMaine
    Participant

    We had the same issue… we do have a custom single-venue.php file, however, when disabled the venue page still showed past and future events.

    I changed one line in single-venue.php that originally looked like this:

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

    to this:

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

    and that seems to work for us… not sure if that’s the ideal solution, however.

    #14207
    Mike
    Participant

    I did the same. I reported the bug last week sometime. I hope it’s fixed in 2.1, along with a lot of other bugs I reported.

    I’d like to revert back to mostly standard files so upgrading is smoother. I’ve made so many changes in my local events files.

    #14208
    Jonah
    Participant

    Ahhh silly me, yes that is the solution. I was looking at my custom template thinking that this was the default code (this is why I asked if you had modified the default template) when I should have looked at the original. I’m not exactly sure why the default template is setup to show all events past and present but it is.

    So Jason, you’ll want to make a copy of single-venue.php and put it in an ‘events’ folder in your them and the modify line 45 with the update UMaine provided. Thanks UMaine!

    – Jonah

    #14309
    Jason
    Participant

    Thanks Everyone!

    #14367
    Rob
    Member

    Our pleasure, Jason – thanks for your feedback on all this stuff so far. Do let us know if anything else comes up down the road.

    #975440
    Support Droid
    Keymaster

    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.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Events listed by Venue displaying all events not just future events.’ is closed to new replies.