bbp_the_search_result()

Loads up the current search result in the loop

Description

Return

(object) Search information

Source

File: bp-forums/search/template.php

192
193
194
195
196
197
198
199
200
201
function bbp_the_search_result() {
    $search_result = bbpress()->search_query->the_post();
 
    // Reset each current (forum|topic|reply) id
    bbpress()->current_forum_id = bbp_get_forum_id();
    bbpress()->current_topic_id = bbp_get_topic_id();
    bbpress()->current_reply_id = bbp_get_reply_id();
 
    return $search_result;
}

Changelog

Changelog
Version Description
bbPress (r4579) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.