Home › Forums › Calendar Products › Events Calendar PRO › Disappearance of past events in Day,List & Photo views
- This topic has 7 replies, 3 voices, and was last updated 10 years, 10 months ago by
Leah.
-
AuthorPosts
-
January 30, 2015 at 2:40 pm #939137
Austen Espeut
ParticipantHow long is going to be till a version comes out when past events disappear immediately in these views as they do in the Time.ly plugin rather than the end of the day?
February 2, 2015 at 8:02 am #939414Barry
MemberHi Austen,
If things are working as they should you should not see any expired events on the first page of a list-type view.
It’s important to note, though, that until an event has ended it is still regarded as current (ie, if it is 9am and you have an event that started yesterday but doesn’t finish until 10am today – it is current up until 10am).
Is that what you are experiencing? If not, can you point me to a live example of what you are facing?
February 4, 2015 at 4:56 am #939926Austen Espeut
ParticipantHi Barry
We normally us Photo view but have now set it to list and we’re still getting the same problem 🙁
February 4, 2015 at 9:34 am #939994Barry
MemberOK, so I can see you have a number of events that ended at or before noon, but are still present on the calendar (and it seems like you are UK based so we’re probably way passed that time of day where you are).
I’m wondering a couple of things here:
- What timezone is your WordPress installation set to? (you can determine this by visiting the Settings > General admin screen)
- Have you tried our standard troubleshooting steps? It’s not unknown for other plugins and even some themes to take it upon themselves to modify the timezone setting
Let me know what you find out!
February 6, 2015 at 4:44 am #940469Austen Espeut
ParticipantHi Barry
Our timezone is set to London and we’ve deactivated all our plugins except those relating to Calendar Pro.
We’re using 2015 template and were experiencing the same problem with 2012.
February 6, 2015 at 8:05 am #940517Barry
MemberI do apologize Austen, I was way off track here. This is actually a known bug that should be fixed in our very next release if everything goes to plan.
In the interim, it might be this snippet (which you could add to your functions.php file) will provide some relief:
class temp_fix_33698 { public function __construct() { add_action( 'pre_get_posts', array( $this, 'pre_tribe' ) ); } public function pre_tribe( $query ) { if ( 'list' !== $query->get( 'eventDisplay' ) ) return; if ( '' != $query->get( 'eventDate' ) ) return; add_action( 'tribe_events_pre_get_posts', array( $this, 'post_tribe' ) ); } public function post_tribe( $query ) { remove_action( 'tribe_events_pre_get_posts', array( $this, 'post_tribe' ) ); $set_to = $query->get( 'start_date' ); $needs_correction = tribe_event_beginning_of_day( date_i18n( TribeDateUtils::DBDATETIMEFORMAT ) ); if ( $set_to === $needs_correction ) $query->set( 'start_date', date_i18n( TribeDateUtils::DBDATETIMEFORMAT ) ); } } new temp_fix_33698;Does that help at all?
March 5, 2015 at 2:47 pm #946362Barry
MemberHi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!
June 2, 2015 at 2:03 pm #966726Leah
MemberHi there,
Thank you for your support and patience while we worked on this issue. We are happy announce that we have incorporated a fix into our upcoming 3.10 release. Keep an eye out for a release announcement on our site and for updates available on your WordPress dashboard.
While we have thoroughly tested this release and are confident of its quality, it is impossible to account for every edge case in the wide world of WordPress. If you run into trouble with the new version or you don’t see your reported issue corrected, please start a new thread and we will be happy to work with you.
Thanks again for your patience here. We’re excited to get this version out the door and into your hands!
Best,
The Events Calendar Team -
AuthorPosts
- The topic ‘Disappearance of past events in Day,List & Photo views’ is closed to new replies.
