bbPress Plugin Browser »

WP Search (1.0)

Version History

  • 1.0 :
    Initial Release
  • 1.1 :
    bug fix for empty private forums
    Added failsafe for installation.
  • 2.0 :
    Added choice to hide private forums or show them with private prefix
    Added selectable prefix text
    Removed redundant forum_access_update_option
  • 2.1 :
    Created Common Submit for all options

Function

  • bb_search_wp(
    $q // text that needs to be searched
    )
    bb_search_wp function performs the search on the wordpress tables and populates
    the variable $wp_posts.

  • bb_wp_post_link(
    $row // row from the result set from the wordpress post search.
    )
    bb_wp_post_link returns the link for the post with the settings in the config.php.
    The text shown is the title of the post.

  • bb_wp_search_default_display()
    bb_wp_search_default_display function displays the posts from the wordpress for
    the default bbpress theme. this can be used as a reference to code custom templates.