How to enable search in bbPress plugin
-
First off, I’m sorry to start a new thread here. I commented on one here: http://bbpress.org/forums/topic/about-search-field-in-bbpress-20-beta-3 but unfortunately it got closed, so I can’t comment on it.
John James Jacoby told me:
This has been covered in these forums a few times already, which may or may not be an indicator of how little the search functionality gets used.
http://bbpress.trac.wordpress.org/ticket/1575
But since I actually commented on a thread regarding the issue, it should tell John, that I actually did a search, and I had actually sought for about 30 minutes before writing the question. And a googlesearch also shows me, that it’s the only place linking to the tracticket: http://bbpress.trac.wordpress.org/ticket/1575
Having said that. When I paste the code it just generates an error and the code in the trac ticket should be this instead:
function my_add_bbp_to_search( $post_type ) {
$post_type['exclude_from_search'] = false;
return $post_type;
}
add_filter( 'bbp_register_forum_post_type', 'my_add_bbp_to_search' );
add_filter( 'bbp_register_topic_post_type', 'my_add_bbp_to_search' );
add_filter( 'bbp_register_reply_post_type', 'my_add_bbp_to_search' );Unfortunately I haven’t figured how to solve these two issues:
– have pages in search results (I always only get one page shown)
– show both forumposts and blogposts in search results.
So any thoughts on these issues would be great.
- You must be logged in to reply to this topic.