I have check through Stackexchange, but no topic is similar to this topic to this.

Is there any way to make WordPress search work for both main site and subdomain?

Both of them have two separate databases.

  • 1
    You mean subdomain? Yes, there are questions here e.g. Multisite Installation: how do I setup global search?, and I've seen one about doing this with ElasticPress too: ElasticPress Indexing multiple sites. Plus if you search for 'wordpress multisite search' there are some plugins too (although I haven't tried them so can't recommend them).
    – Rup
    Aug 1, 2019 at 14:33
  • I'm assuming you mean a subdomain, right? And is it a multisite or not? Probably not, if the databases are separate. Aug 1, 2019 at 14:37
  • its NOT a multisite, its just a single wp installation.
    – XATA
    Aug 1, 2019 at 16:33
  • Two single WP installations? I suspect some of these will still just work, e.g. a shared ElasticPress index between the two. Multisites are separate databases anyway but all accessed through the same connection, whereas if you need separate database connections then either both sites need both sets of connection details, or you need to get one to search against the other one's REST API then stitch the results together, or use some other shared external index I guess.
    – Rup
    Aug 1, 2019 at 18:47


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.