Display Forum Topics where Forum Posts contain keywords

I’d like to add condtions to the bp_forum_topics() loop that only contain posts with certain keywords. Can anyone help me with this?

I’d like to create a custom plugin that overrides the current function bp_forum_topics() that does this. Im new to wordpress development so unsure about filters and tags. Right now it returns all topics (with the exception of loose search terms, newest, popular etc). I want to be able to return topics if the posts related to that topics contains specific search terms.

Yeah, ive actually implemented that already, but it just searches the forum topic.

Brajesh says

Hi Mark,
Thanks for the comment. As far as I see buddypress provides no way for searching/listing forum posts on search page. So, In my guess, It’s not going to be easy. Though, If you are familiar with bbpress you can override buddypress forum search and make it happen .