Home › Forums › Calendar Products › Events Calendar PRO › Events listed by Venue displaying all events not just future events.
- This topic has 9 replies, 6 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
January 25, 2012 at 1:05 pm #14124
Jason
ParticipantIf 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.
January 25, 2012 at 2:31 pm #14133Jonah
ParticipantHi 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,
JonahJanuary 25, 2012 at 3:01 pm #14142Jason
ParticipantHi 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.
January 25, 2012 at 3:04 pm #14143Jonah
ParticipantWould you mind emailing me WP admin access to jonahcoyote [at] gmail [dot] com so I can take a look at some things?
January 26, 2012 at 12:02 pm #14205UMaine
ParticipantWe 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.
January 26, 2012 at 12:14 pm #14207Mike
ParticipantI 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.
January 26, 2012 at 12:15 pm #14208Jonah
ParticipantAhhh 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
January 28, 2012 at 8:20 am #14309Jason
ParticipantThanks Everyone!
January 30, 2012 at 7:49 am #14367Rob
MemberOur pleasure, Jason – thanks for your feedback on all this stuff so far. Do let us know if anything else comes up down the road.
July 3, 2015 at 5:00 pm #975440Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Events listed by Venue displaying all events not just future events.’ is closed to new replies.
