• Hello, I’m trying to make my AQL return events that are currently happening.

    I have a an ACF called “start-date” and another one called “end-date”. I’ve used Lane’s solution from another thread to get “Coming Soon” events to work relative to today’s date but this one doesn’t seem to work.

    I’m trying to use two Post Meta Queries to achieve this as follows:

    start-date < todays_date
    AND
    end-date > todays_date

    For some reason it returns no results.

    I can get dates before today, or dates after. For either start-date or end-date. But not between. Am I right in thinking if an event satisfies both queries it should be returned?

    Or am I missing something?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Ryan Welcher

    (@welcher)

    Hello and thanks for using AQL!

    I might be mistaken but you might have to include todays date in the query.

    start-date <= todays_date (start is less than or equal to today)
    AND
    end-date >= todays_date (end is greater than or equal to today)

    Let me know if that helps!

Viewing 1 replies (of 1 total)

The topic ‘Can A Loop Show Current Events?’ is closed to new replies.