Exclude expired event posts from blog post listing

  • Dear Perchers,


    I manage blog posts that contain events with an event date field. I'd like to list all posts, except those with an event date that has passed. My best idea was to use multiple filters, listing:

    • the posts with the event category and event dates greater than or equal to today AND
    • the posts that are not events.

    This doesn't work, I guess because categories cannot go into the filter array.


    I thought about using an expiry date, but that gets filled automatically with today's date, therefore the post will expire the day after publishing.


    If you have an idea for a solution, I'd be really grateful.


    Thanks a lot!
    Laszlo

  • laszlograma

    Changed the title of the thread from “Complex filter for blog post listing” to “Exclude expired event posts from blog post listing”.
  • drewm

    Approved the thread.