Multisite, CPTs, and Autocomplete
-
First, I want to say thank you for this incredible plugin, and thank you for supporting/maintaining it!
I have a Multisite network with about a dozen subsites, and although it’s all one cohesive website (from a design and content perspective), there are instances where only one of the subsites include a particular Custom Post Type.
WP Search with Algolia is activated on every subsite, and the same prefix is used for all indices. This means that as long as the CPT is available on every subsite (Pages, Posts) the plugin returns results as expected, network-wide.
The problem comes where a single subsite has a CPT enabled (say, an Events CPT or a Products CPT). It doesn’t seem possible from within the plugin to allow results from those indices to be returned from the main site’s autocomplete… The UI where you choose which CPTs to use in the autocomplete can only list the CPTs for the current subsite.
I guess my question is whether there’s some programmatic way to dictate a list of indices that could supersede the Autocomplete options for the plugin.
Sorry for writing a book, hopefully that’s clear!
- The topic ‘Multisite, CPTs, and Autocomplete’ is closed to new replies.