Forums
-
- Forum
- Posts
-
- Installation
- 26,496
- Troubleshooting
- 56,896
- Themes
- 9,886
- Plugins
- 14,469
- Requests & Feedback
- 14,173
- Showcase
- 3,222
-
Since bbPress-Live also does a list of forums, here’s how to do that too:
<h2>Forum List</h2>
<ul>
<?php
global $wpdb;
$query="SELECT * FROM bb_forums WHERE topics!=0 ORDER BY forum_order ASC LIMIT 10";
$results=$wpdb->get_results($query);
foreach ($results as $result) {
echo "<li><a href='/forums/forum.php?id=".$result->forum_id."'>".$result->forum_name."</a></li>";
}
?>
</ul>
of course this example doesn’t take into account nested forums and will just display them flat.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS