Exclude past events from search results

Home Forums Calendar Products Events Calendar PRO Exclude past events from search results

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #82438
    Christoffel
    Participant

    I want to exclude past events from the main wordpress search results. Is there a way to achieve this?

    Thanks

    #82550
    Barry
    Member

    Great question: I think that could be the basis of a worthy feature request, if you are game to make one:

    http://tribe.uservoice.com

    Right now I think implementing this is a little beyond what we can help you with – but I’d imagine it’s possible to intercept and modify the query used for searches with some WP know-how and good use of filters.

    #82796
    Christoffel
    Participant

    Maybe this is part of ananswer: https://tri.be/support/forums/topic/exclude-events-from-search-results/
    But I cannot find a way to change the query in a way that only past events are excluded from search.

    I made a feature request, also to exclude recurrent events.

    Thanks

    #82890
    Barry
    Member

    That’s basically the sort of avenue you would need to take – and you would probably be interested in adding a comparison against the corresponding EventStartDate and EventEndDate fields from the postmeta table.

    Great that you made a feature request, though – it’s definitely one we’ll look into.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Exclude past events from search results’ is closed to new replies.