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
BrajeshHi 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.
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
SumitHi 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.
You are welcome. Did it work for you?
Regards
BrajeshHi 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.
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.