Forums Forums Search & Filter Pro Filtering Upcoming Events

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #264942

    I’m having some trouble creating a search filter. I would like to have radio buttons for UPCOMING and PAST event, defaulting to UPCOMING.

    If UPCOMING is selected, I need to show only where an ACF date field is >= today. Sorted by that date ASC.

    If PAST is selected, I need to show only where an ACF date field is < today. Sorted by that date DESC.

    I’m using Beaver Builder, and I’d already created this function that filters the post list by those parameters, using an ID for the module:

    https://pastebin.com/q9uMH1iW

    But I don’t think that will work with S&F, because the content source for the module needs to be Search and Filter, rather than Custom Query.

    So in S&F, I’ve set the default order to a Meta Value of event_start_date ASC, which does the same thing, but of course, includes all events.

    Is there a way to set a radio filter to default to event_date_date ASC (only show where that date field is >= today?

    Then if that filter is switched to PAST, reverse that filter and show past events DESC?

    Trevor
    #264947

    With the current version of the plugin, that is not possible, sorry. It may become possible in V3, due in a few months.

    Anonymous
    #264949

    Is there a public roadmap for V3? “May be possible” and “a few months” are a little unspecific for me to manage clients’ expectations.

    Thanks

    Trevor
    #264951

    There is not, sorry.

Viewing 4 posts - 1 through 4 (of 4 total)