I edit the template.php bbp-forum, although I do not sound right to modify the core.
I changed bbp_list_forums function () original:
function bbp_list_forums( $args = '' ) {
[...]
// Build this sub forums link
$output .= $link_before . '' . $title . $counts . '' . $show_sep . $link_after;
}
// Output the list
echo $before . $output . $after;
}
}
by:
function bbp_list_forums( $args = '' ) {
[...]
// Build this sub forums link
//$output .= $link_before . '' . $title . $counts . '' . $show_sep . $link_after;
$output[] = array(
'permalink'=>$permalink,
'title'=>$title,
'count'=>$count
);
}
// Output the list
return $output;
}
}
and I returned:
Array
(
[0] => Array
(
[permalink] => http://localhost/wpv1/foros/seccion/dota2/torneos-y-competencias
[title] => Torneos y competencias
[count] => Array
(
[topic] => 1
[reply] => 5
)
)
[1] => Array
(
[permalink] => http://localhost/wpv1/foros/seccion/dota2/dota-chat
[title] => Dota chat
[count] => Array
(
[topic] => 0
[reply] => 0
)
)
)
The only drawback is that I can not get the last comment of each forum.