Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum search does not work in 2.3.2


  • jameswordpress
    Participant

    @jameswordpress

    I’ve just installed bbpress 2.3.2 and created a forum and some topics.

    I tried to search the forum and it results no results with the message “Oh bother! No search results were found here!”

    I tried all the different words from both the title and topic message without any result.

    Is there something I need to enable in bbpress to allow the forums to be searchable?

    James.

Viewing 7 replies - 1 through 7 (of 7 total)

  • jameswordpress
    Participant

    @jameswordpress

    Ah yes it was the theme causing the problem. Interesting. Changing theme fixed the problem.


    rahman.mahfuz
    Participant

    @rahmanmahfuz

    I was also using a Child Theme of Woothemes Canvas Theme. In my case, it was resolved using the following (I found this solution in this site – http://www.pootlepress.co.uk/2013/06/65-tips-tricks-and-css-tweaks-for-woothemes-canvas/):

    Fix for BBPress and Canvas (5.2 and higher)
    ———————————————

    Matty Cohen from WooThemes provided the fix for this one 🙂

    Add a file called “bbpress.php” into your child theme. This file can be downloaded here: https://gist.github.com/mattyza/1b01583441b11c8d04d0
    Add the following code in the designated area of your “functions.php” file: https://gist.github.com/mattyza/f210cadb7f70188d513d


    tazogamer
    Participant

    @tazogamer

    I am almost sure, you have problems inside your theme’s FUNCTIONS.PHP!
    find this phrase in your functions.php ( or maybe problem can be inside any other activated plugin):

    add_action(‘pre_get_posts’,……………

    there maybe set search query customizations, so if there is set/limited the post types, then bbPress post types maybe left out of scope. So, alter that code (i.e. change to something like this:

    add_action('pre_get_posts','my_search_filterr');
    function my_search_filterr($query) 
    {
    	if ($query->is_search())   //if ($query->is_main_query())
    	{
    		$arrs[]='post';
    		$arrs[]='page';
    		//and etc... 
    		
    		//Then bbPRESS types:
    		$arrs[]='topic';
    		$arrs[]='forum';
    		$arrs[]='reply';
    		$query->set('post_type', $arrs );
    		
    	}
    	return $query;
    }

    creator2000
    Participant

    @creator2000

    Matty Cohen from WooThemes provided the fix for this one 🙂

    Thank you! This solution fixed my forum search, but messed up my page layout!
    Please look here:
    http://temp.stillrunnin.com/runnin-board/

    My sidebar is now moved to the bottom instead of being next to the forum content!

    Any idea what I did wrong and how to fix it?


    creator2000
    Participant

    @creator2000

    Any idea what I did wrong and how to fix it?

    Got it figured out! In the new bbpress.php file I changed line 22 code:

    from this
    <section id="main">

    to this:
    <section id="main" class="col-left">

    All good now!


    Robin W
    Moderator

    @robin-w

    great – glad you’re fixed


    foresme
    Participant

    @foresme

    Hello!

    I am using the Canvas theme with bbpress. I used the above fix to solve the bbpress search issue, however now bbpress seems to have lost the ability to create line breaks.

    The line/paragraph breaks that are created when typing into the editor, disappear when the post is submitted, and all the paragraphs merge together making the post much harder to read.

    Anyone clever got any ideas? Please help!

    The problem could also be related to the new version of WP 4.0.1 which I just updated to.

    Best,

    Esme

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.