How to add bbpress to search results?

adding bbpress in your search results

Hello everyone,

i was developing a bbpress based theme for a friend of mine and he wanted to display the results of the forum within wordpress native results, by default it doesn’t up till now maybe they’ll sort it along their development one day, anyways did some digging and found the following solution.

open your functions.php file in your theme folder and add the following