BuddyDev

Search

[Resolved] Search is not working

  • Participant
    Level: Initiated
    Posts: 8
    sumit on #18080

    Hi,

    I have added bbpress plugin in my website.I have deactivated all plugins and also installed bbpress fix but bbpress default search is not working.

    It’s always showing “Oh bother! No search results were found here!”.

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #18082

    Hi Sumit,
    Are you using a custom theme? Try changing it and using default theme. I have seen themes filtering on ‘pre_get_posts’ and causing it in past.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 8
    sumit on #18102

    Hi Brajesh,

    Thanks for your reply.

    I am using Primer free theme by godaddy “https://wordpress.org/themes/primer/”.

    Thanks
    Sumit

    • This reply was modified 6 years, 1 month ago by sumit.
  • Participant
    Level: Initiated
    Posts: 8
    sumit on #18104

    Hi Brajesh,

    According to your above message i searched this in my theme “pre_get_posts”.I have find a function in my functions.php so i have commented that function and bbpress search start working.
    you can check the function below but i want to know if i comment this function so it will effect my theme ?.

    if (!is_admin()) {
    function wpb_search_filter($query) {
    if ($query->is_search) {
    $query->set(‘post_type’, ‘post’);
    }
    return $query;
    }
    add_filter(‘pre_get_posts’,’wpb_search_filter’);

    Thanks
    Sumit

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #18105

    Hi Sumit,
    You can comment this line

    
    
    //add_filter('pre_get_posts','wpb_search_filter');
    
    

    and your bbPress search will work fine. Also, there is no need to worry about this change. It won’t break anything.

  • Participant
    Level: Initiated
    Posts: 8
    sumit on #18106

    Hi Brajesh,

    Thanks for your help.

    Thanks
    Sumit

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #18107

    You are welcome. Did it work for you?

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 8
    sumit on #18108

    Hi Brajesh,

    Yes it works for me.

    If you don’t mind i have few more questions.

    1) Can you please recommend a plugin for bbpress integration with peepso.I did some research i find a paid plugin.Do you know any free plugin that can help me.

    2) I am using “gd bbpress attachments” plugin for adding images in topics but this does not add image in Forum so if you can tell me how can i add “gd bbpress attachments” for forum as well.

    Thanks
    Sumit

    • This reply was modified 6 years, 1 month ago by sumit.
  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #18117

    Hi Sumit,

    Thank you for confirming.

    I am sorry but I don’t use PeepSo so I am unable to make any suggestion.

    Regards
    Brajesh

The topic ‘ [Resolved] Search is not working’ is closed to new replies.

This topic is: resolved