Forums
-
- Forum
- Posts
-
- Installation
- 26,496
- Troubleshooting
- 56,896
- Themes
- 9,886
- Plugins
- 14,469
- Requests & Feedback
- 14,173
- Showcase
- 3,222
-
<?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