Relevanssi - A Better Search
[resolved] Duplicate custom post types (4 posts)

  1. Andrzej
    Posted 2 years ago #

    Hi Mikko,

    We use 'The Events Calendar' Pro to create reoccurring events with the same title, content but different dates. Is there some way to post-process search results to show just the latest event (custom post type) and skip older events? Perhaps using your 'hook' API?

    Otherwise, I'm open to seeing this feature in Relevanssi Premium.

    Thanks for the nicely done plugin. Cheers.


  2. Mikko Saari
    Plugin Author

    Posted 2 years ago #

    You could use the relevanssi_hits_filter hook. It lets you process all the search results. You can go through the results (it's a simple array of post objects) and remove the older events from the array.

  3. Andrzej
    Posted 2 years ago #


    Thank you for directing me to that filter. After a quick peek at your user-manual, I have a good sense of how to filter my calendar event post types.

    BTW, is the relevanssi_hits_filter only available to premium subscribers?

  4. Mikko Saari
    Plugin Author

    Posted 2 years ago #

    No, the filter is available in both versions of the plugin. There aren't many Premium-only filters, and those relate to Premium features, not generic search features.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Relevanssi - A Better Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic