wp_table_prefix) $wp_posts = $bbdb->get_results("SELECT * FROM " . $bb->wp_table_prefix . "posts WHERE (post_title LIKE '%$q%') OR (post_content LIKE '%$q%')"); } add_filter( 'do_search', 'bb_search_wp'); function bb_wp_post_link($row) { global $bb; if ($bb->wp_table_prefix) return '' . $row->post_title . ''; } function bb_wp_search_default_display() { global $wp_posts; if ( $wp_posts ) : ?>
post_date); ?>