show bbPress sub forums

Published On:
10 August 2010
Author
Kevinjohn Gallagher
Comments
0
Categories
Tags

A question I get asked a great deal about bbPress is how it handles the displaying and controlling of sub forums. The answer is sadly “in a very poor way”, but I’ve a copy/pasta solution at hand. Hopefully this will get you started.

On your forum.php template page add the following code:

[sourcecode language="php"]
//
if ( bb_forums($forum_id) )
{
while ( bb_forum() )
{

/*
// Copy and paste your forum output code here
//
// If you’re unsure of what that is,
// just copy it directly from the Kakumei theme at
// bb-templates/kakumei/front-page.php lies: 47-84.
*/

}
}
//
[/sourcecode]


0 comments