Multiday Event Cutoff not working for List

Home Forums Calendar Products Events Calendar PRO Multiday Event Cutoff not working for List

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #26080
    Tim
    Participant

    The ‘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!

    #26094
    Leah
    Member

    Hi 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,
    Leah

    #26095
    Tim
    Participant

    If 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?

    #26112
    Leah
    Member

    Hey 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

    #26114
    Tim
    Participant

    Leah, 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.

    #26122
    Leah
    Member

    Hey 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,
    Leah

    #26248
    Tim
    Participant

    Thanks 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!

    #26249
    Barry
    Member

    Hi 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 🙂

    #26251
    Tim
    Participant

    I 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.

    #26282
    Barry
    Member

    Well, 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)?

    #26317
    Tim
    Participant

    Ok, 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!

    #26328
    Barry
    Member

    It’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/

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Multiday Event Cutoff not working for List’ is closed to new replies.