Forum search inside Buddypress group
I am trying to implement a search box inside a Buddypress group that searches on the contents of the Group Forum. I found some helpful instructions here
Basically, I pasted the following code outside the loop in the “content-single-forum.php” file. (Of course this was done to a copy of the bbpress file which I imported into my theme’s bbpress folder):
<h3>Search Forum</h3> <form role="search" method="get" id="bbp-searchform" action=""> <label for="ts">Search the support forum topics</label> <input type="text" name="ts" id="ts" value="<?php echo ( isset( $_REQUEST['ts'] ) ) ? $_REQUEST['ts'] : ''; ?>" /> <input type="submit" id="searchsubmit" value="Search" /> </form>
This code however, performs search only on the topics and not the replies.
Can someone suggest appropriate modifications to the code so that it searches on both topics and replies rather than just the topics.
- You must be logged in to reply to this topic.