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 3 replies - 1 through 3 (of 3 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;
    }
Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.