A way to include Discourse posts in Wordpress search results? Any clever ideas?


(Leah Kramer) #1

Let’s say you loads of informative articles in the Wordpress part of your site and then of course loads of informative conversations in the Discourse part of your site.

When you type a phrase into the Wordpress search box, it would be really cool if relevant Discourse threads could come up in addition to the relevant Wordpress articles.

Has anyone found a clever way to do this? This is not a deal breaker of course. It would just be really useful.


(Erlend Sogge Heggen) #2

Perhaps the easiest way to accomplish this would be to use a custom search engine, like Elasticsearch or Algolia:

See this:


(Simon Cossar) #3

It could also be done by making a search request to Discourse through the Discourse API and including the results of that request with the WordPress search results.


(Leah Kramer) #4

Thanks @Simon_Cossar. I’m going to try that. I hadn’t realized the Discourse API had search functionality.


(Tobias Eigen) #5

If you solve this do let us know here! My community would benefit greatly.


(Leah Kramer) #6

I started a new thread with a solution I came up with here: