Home › Forums › Calendar Products › Events Calendar PRO › Multiday Event Cutoff not working for List
- This topic has 11 replies, 3 voices, and was last updated 13 years, 6 months ago by
Barry.
-
AuthorPosts
-
October 4, 2012 at 9:50 am #26080
Tim
ParticipantThe ‘Multiday Event Cutoff’ setting works great for grid view but it doesn’t work for the list view. Is there any way to fix this?
Thanks!
October 4, 2012 at 12:28 pm #26094Leah
MemberHi Tim,
Can you elaborate a bit more on the issue? I did a quick test on my own demo site and didn’t see a difference in list view. I’m happy to help out once I understand the problem you’re having.
Thanks,
LeahOctober 4, 2012 at 12:42 pm #26095Tim
ParticipantIf an event starts on October 3rd and ends at 2am on October 4th it will still show up on the list view for everyone looking at the site on October 4th even if you have “Mulitday Event Cutoff” set to 3am.
Does this make sense?
October 4, 2012 at 2:31 pm #26112Leah
MemberHey Tim,
Thanks for clarifying. I was able to recreate the same issue. I believe what you’re experiencing is a known bug. The good news is that we’re working hard to fix it in our next release, which should be out before the end of October.
Thanks for your patience, and let me know if there’s anything else I can do to help out.
~Leah
October 4, 2012 at 2:34 pm #26114Tim
ParticipantLeah, In the meantime is there any way I can set a custom loop that will fix this? The alternative is to do a display:none of the expired events but that’s obviously pretty hacky.
Any help is greatly appreciated.
October 4, 2012 at 4:38 pm #26122Leah
MemberHey Tim,
Happily, Barry just whipped up a snippet that should help you out (http://pastebin.com/x66he0BC) that needs to be added after while(have_posts()) : the_post(); in events/list.php
He says that it doesn’t actually check the cut off time, but instead checks to see if an event is multiday, if the current view is Single Day and if the event started before the day being viewed. If that criteria is met, it skips that event.
I hope that helps!
Thanks,
LeahOctober 8, 2012 at 9:10 am #26248Tim
ParticipantThanks Leah, however that code didn’t seem to work for me when I tested it. Were you able to get it working?
I’m going to try to use it as a reference to do my own custom loop (outside of the list.php page) and see if that works so my client will stop complaining that your plugin is “broken”.
In the meantime, if you are able to get this working or find another solution that works PLEASE let me know.
Thank you!
October 8, 2012 at 9:19 am #26249Barry
MemberHi Tim – it did work for me when I ran up a quick test. Perhaps you could share your list.php code showing how you integrated it (using a service like Pastebin or Gist) – then I would be better able to help 🙂
October 8, 2012 at 9:26 am #26251Tim
ParticipantI think I found the issue. Once I removed this call I was able to get it working:
`if (tribe_is_day()) {`However now it also hides this multi-day event from the archive when you go to see past events. I’m assuming until this bug is fixed I’ll just need to do a custom page (with a custom loop) to show true “upcoming” events and then use the Event Calendar list.php to show the archive of all events.
Ideally I’d love to be able to use the regular list page for this, however I can’t have it making past events which are multi-day to be hidden completely from the archives.
Thanks.
October 8, 2012 at 1:07 pm #26282Barry
MemberWell, the tribe_is_day() call is there to limit the effect of the code I wrote to day views only. Perhaps I misunderstood the problem however and you are talking about the general upcoming events list (available at example.com/events/upcoming)?
October 8, 2012 at 9:44 pm #26317Tim
ParticipantOk, this is starting to make more sense now since I did not know about the “upcoming” feature of events calendar. In this case, is there a way for me to show upcoming events from a certain category? (and then take out the expired listings using your code)
Thanks!
October 9, 2012 at 5:59 am #26328Barry
MemberIt’s possible to generate/link to a list of upcoming events for a specific category already. If you had a category with the slug “barn-dance” for instance (and are using pretty permalinks) you can find this at:
example.com/events/category/barn-dance/upcoming/
-
AuthorPosts
- The topic ‘Multiday Event Cutoff not working for List’ is closed to new replies.
