• Resolved mikemesseroff

    (@mikemesseroff)


    Hello – I am using a plugin for events called Time.ly, however, past events are appearing in relevanssi search results. Any idea how to stop this from happening?

    Thanks,
    Mike

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    There are two approaches:

    1. Create a filter function on the relevanssi_hits_filter hook that goes through the search results and weeds out the past events.

    2. Create a filter function on the relevanssi_modify_wp_query hook that adds a pre-search filter that removes the past events.

    #1 is easier to do, #2 is maybe slightly more efficient.

    Thread Starter mikemesseroff

    (@mikemesseroff)

    Thanks Mikko! I’m working with the Time.ly guys now to try to get this fixed.

    Thanks,
    Mike

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