bbPress Plugin Browser »

WP Search (1.0)

Download

Version: 1.0

Other Versions

Last Updated: 2007-1-9

Requires bbPress Version: 0.73 or higher

Compatible up to: 0.74

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(5)

Your Rating

Author: Aditya Naik

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

Tags: ,

  1. 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: 5 years ago #
  2. 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: 4 years ago #
  3. 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: 4 years ago #
  4. You should let us know what code to add to our templates.

    Posted: 4 years ago #
  5. Where need to paste this code bb_search_wp?

    Posted: 3 years ago #
  6. 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: 3 years ago #
  7. Hrm. Any easy way to make the results display newest to oldest? It seems to sort results with the oldest at the top.

    Posted: 3 years ago #
  8. 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: 3 years ago #
  9. Thanks a bunch! That did the trick! :D

    Posted: 3 years ago #
  10. I just copied my WP Search from the source code. Works like a charm...

    Posted: 2 years ago #
  11. Will not work

    Posted: 1 year ago #
  12. What version of BBPress are you using Beauty Femme?

    Posted: 1 year ago #

RSS feed for this topic

Add a Comment

You must log in to post.