Why, this is fabulous! Thank you so much for your help!!
I tested with your modified code for about an hour, and can’t seem to find any issues. I will post an update in case I do discover any problems…
But this does appear to be the solution to searching single bbpress forums, including private ones in Buddypress. Thanks to you, @tobyhawkins! 🙂
Thank you @tobyhawkins! Yes I have gone through that link, and it almost works…
There is a slight caveat: the searches made on private Buddypress group forums do not return results if the user is below the “bbp_moderator” level. All such users see is the dreaded “Oh bother! No topics were found here” message.
My guess is that default bbpress search (which sevenspark’s method also employs) behaviour is currently set to not return results from private Buddypress forums for (say) a “bbp_participant” level user.
The method does however seem to work fine if one is only using sitewide forums and not Buddypress group forums.
Its a very useful trick, nonetheless!
Does anyone know of any way to perform search on single bbpress forums? Has anyone implemented such a search functionality? Any helpful resources you can suggest?
Thank you