• What I want to achieve:
    Show upcoming/pasts events (custom type created with ACF) using Custom Post type block

    I have a custom post type for events. In there I’ve custom fields for the event like date (not the post date, the event date).

    I want to show only upcoming events, and discrimine past events. In the custom post type block we have a custom field filter and in theory I might be able to filter the past events but I don’t know if this field could manage something like:
    Show events that his date is bigger than today
    event_date > today()+ datetime (type)

    but this is not working. I supose that the filter don’t have the ability to test the funcion “today()” isn’t it?

    How I must use this filter to only show upcoming events and viceverse without editing a state field or something like that.

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

  • The topic ‘Using Custom Field Filter subquery for testing date interval’ is closed to new replies.