Support » Plugin: Relevanssi - A Better Search » Duplicate custom post types

  • Resolved Andrzej

    (@awoz)


    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.

    https://wordpress.org/plugins/relevanssi/

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

    (@msaari)

    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.

    Mikko,

    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?

    Plugin Author Mikko Saari

    (@msaari)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Duplicate custom post types’ is closed to new replies.