Forums
-
- Forum
- Posts
-
- Installation
- 28,019
- Troubleshooting
- 61,234
- Themes
- 10,269
- Plugins
- 15,082
- Requests & Feedback
- 14,724
- Showcase
- 3,245
-
<?php global $forum; if ($forum->forum_parent == 0) forum_description(); ?>
Quick explanation of the code: When $forum
‘s forum_parent
is 0
, that means $forum
is a top-level forum; if not, it is a sub-forum of another forum whose forum_id
equals $forum
‘s forum_parent
.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS