Support » Plugin: Relevanssi - A Better Search » [Plugin: Relevanssi – A Better Search] Search bbpress?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Yes. BBPress stores forum data in a custom post type, which Relevanssi can index.

    sweet .. thanks .. i’ll try it out!

    works great .. for other folks wanting to do this i had to add this code to my theme’s functions.php file to include bbpress custom post types in the search index:

    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' );

    Plugin Author Mikko Saari

    (@msaari)

    Notice that Relevanssi has a setting you can adjust, whether it respects “exclude_from_search” or not. This is a pretty neat solution, too.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Relevanssi – A Better Search] Search bbpress?’ is closed to new replies.