algolia / algoliasearch-wordpress

❌🗑🙅‍♂️ Algolia Search plugin for WordPress is no longer supported. Please use our API client guide instead
https://www.algolia.com/doc/integration/wordpress/getting-started/quick-start/
GNU General Public License v2.0
358 stars 114 forks source link

Merging multiple CPT into one index #812

Open lucasyarid opened 5 years ago

lucasyarid commented 5 years ago

I'm currently looking for a solution on a very specific problem on our end.

We have several different custom post types in our WordPress dashboard but for our front-end user they should all look the same, like "News". What we are currently doing is listing those posts in another website with vanilla js Algolia, but since they are all segregated we need to query multiple Algolia indexes even tho they should all look the same.

The ideal solution would be to have a single Algolia index with all multiple custom post types (posts, pages, posts_news, posts_clippings). Is that achievable? I'm even trying to create a CPT in WordPress which is the combination of multiple CPT but really can't seem to find a solution.

EDIT: Found similar Issues listed here but I believe the other ones had different outcomes.

Thank you