Help Desk

Remove past events from search

  • Posts: 32 Topics: 35
    | Permalink

    I’m trying to figure a way to remove past events from the search. I want to search to bring back blog posts, organizers and current and future events. I know that I need to change what I’m calling from wp query, but I can’t figure out how to get the results that I need.

    Posts: 32 Topics: 35
    | Permalink
    This reply has been marked as private.
    Posts: 1180 Topics: 1
    | Permalink

    Hello funinjerusalem,

    I’m not sure I’ll be able to help much here unfortunately, as that level of customization goes beyond the scope of the forums.

    However, if you filter the query for the _EventEndDate wp_postmeta.meta_key, you should be able to remove the ones you don’t want to publish (those with dates prior to today).

    Also, you may find the Event Rocket plugin to be very useful. It is experimental and we are not able to support it, but it was created by one of our developers and it might give you some of the answers you’re looking for. There is a feature to cleanup expired events.

    Does this make sense? Let me know if I can explain anything else!

    Cheers!

    – Casey Driscoll

    Posts: 1180 Topics: 1
    | Permalink

    Hello funinjerusalem,

    We typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.

    Cheers!

    – Casey Driscoll