• I’m trying to exclude long_events from an events_list in Events Manager. It looks like the function is supported for calendars but not lists. Is there any way to implement this for list pages?

    This is for a museum’s site where the calendar needs to show both exhibitions that last for months and many single-day events. Right now the long exhibitions are hogging all space in the event list and not letting the single-day events get attention when they need it.

    It’s not possible to do the Settings > Pages > Events List/Archives “Are current events past events?” fix suggested in another post, since the exhibitions should still display the whole time it’s on view. A calendar display won’t work for various reasons. . . any insights or workarounds would be very helpful.

    https://www.ads-software.com/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    try under Events > Settings > Pages > Event List/Archives > Are current events past events

    Thread Starter vladtheinhaler

    (@vladtheinhaler)

    Thanks for the fast reply, but as I said in my post, that setting won’t work because I want to totally exclude long_events from the events_list, not just hide them once they’ve started.

    For what it’s worth, I’d also like to show a second list on the same page that ONLY displays long_events. That way the two lists could be separate and show the relevant types of events in a format best suited to their duration/nature.

    Any other suggestions would be welcome.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    at the moment this is not possible at the moment however maybe you can try to use conditional placeholders or create custom search attributes

    https://wp-events-plugin.com/documentation/conditional-placeholders/
    https://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/

    Thread Starter vladtheinhaler

    (@vladtheinhaler)

    Nice, that’s a pretty solid tip. . . I didn’t know there were {is_long} and {not_long} conditions available. This *almost* gets me where I need to be. I say “almost” because using this method results in one annoying behavior that I can’t figure out how to deal with:

    When using this code:

    [events_list limit="2"]
    {not_long}<a href="#_EVENTURL">#_EVENTIMAGE</a>
    <span style="font-weight: bold; text-transform: uppercase;"> #_EVENTLINK </span>{has_location}
    #_LOCATIONLINK{/has_location}
    <span style="font-weight: bold;">#_EVENTDATES
    #_EVENTTIMES</span>
    #_EVENTEXCERPT{30,...}{/not_long}
    [/events_list]

    to display the events_list, the front-end page doesn’t return any events, when in fact there are a lot of future events in the queue. I figured out that this is because the first two events in the queue are both long_events, so the events_list loop logic goes: event 1 is long, so skip; event 2 is long, so skip; done.

    What I need it to do, of course, is limit the events_list to the first 2 events *that get displayed* instead of the first two that *exist*.

    Can you help me figure out how to add this refinement? Thanks again for your <24 hour reply, which I really appreciate!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘exclude long_events in an events_list’ is closed to new replies.