Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Hiding Subforums on The Homepage


livibetter
Member

@livibetter

<?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.

Skip to toolbar