This plugin searches the Wordpress Posts whenever a search is executed in BBPress. The template for the search will need to be modified to display the posts
bbPress Plugin Browser »
WP Search (1.0)
Download
Version: 1.0
Last Updated: 2007-1-9
Requires bbPress Version: 0.73 or higher
Compatible up to: 0.74
Average Rating





Your Rating
Author: Aditya Naik
-
I would really like to use this plugin but I get the following error when trying any search:
bbPress database error: [Table 'wordpressmu.wp_posts' doesn't exist]
SELECT * FROM wp_posts WHERE (post_title LIKE '%hello%') OR (post_content LIKE '%hello%')Any ideas?
Greetz,
Posted: 3 years ago # -
Another great integration plugin to list if we ever get an integration sub-forum around here ;-)
I think you need to modify your search so it only includes published WP posts, and excludes private.
if ($bb->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%') AND post_type != 'page' AND post_status = 'publish'");and your date function was not working for me so I modified it to this:
<p><small><?php _e('Posted') ?> <?php echo _bb_time_function_return( $wp_post->post_date, array('format' => 'F j, Y, h:i A') ); ?></small></p>Posted: 2 years ago # -
After I activate the plugin, what do I need to do next?
I think this is a great plugin but I just cann't figure it out on my own, sorry newbie in the house.
I am not to familiar with the functions!!
Thanks in advance
Posted: 2 years ago # -
You should let us know what code to add to our templates.
Posted: 2 years ago # -
Where need to paste this code bb_search_wp?
Posted: 1 year ago # -
Decent plugin, and _ck_'s alterations made it better, but I've noticed that search results are also finding results in the Media Library (images) and blog posts that are published with a future timestamp on them. Neither of which are helpful results for users running searches.
Any easy way to exclude these two things from results?
Posted: 1 year ago # -
Hrm. Any easy way to make the results display newest to oldest? It seems to sort results with the oldest at the top.
Posted: 1 year ago # -
You can change the sort order by changing the query like this:
if ($bb->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%') AND post_type != 'page' AND post_status = 'publish' ORDER BY post_date DESC");Posted: 1 year ago # -
Thanks a bunch! That did the trick! :D
Posted: 1 year ago # -
I just copied my WP Search from the source code. Works like a charm...
Posted: 1 month ago #
Add a Comment
You must log in to post.