Title: Duplicate custom post types
Last modified: August 21, 2016

---

# Duplicate custom post types

 *  Resolved [Andrzej](https://wordpress.org/support/users/awoz/)
 * (@awoz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/duplicate-custom-post-types/)
 * 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/](https://wordpress.org/plugins/relevanssi/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/duplicate-custom-post-types/#post-4742674)
 * 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.
 *  Thread Starter [Andrzej](https://wordpress.org/support/users/awoz/)
 * (@awoz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/duplicate-custom-post-types/#post-4742685)
 * 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](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/duplicate-custom-post-types/#post-4742696)
 * 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.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

## Tags

 * [duplicate](https://wordpress.org/support/topic-tag/duplicate/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/duplicate-custom-post-types/#post-4742696)
 * Status: resolved