Reply To: Breadcrumbs on Search Results Screen
in both your cases (main search and empty search) then yes you will have a problem.
main search can be excluded by looping round the search results and excluding the forum if the search results are from more than one forum.
Global wp_query is available, and lists the query that was executed, so in there you would find the
‘key’ => ‘_bbp_forum_id’,
‘value’ => $forum_id,
‘compare’ => ‘=’, ,
part of the query, so you could use that with some nifty code to extract the forum number, but I’ll leave you to work out how to do that !!