Skip to:
Content
Pages
Categories
Search
Top
Bottom

Subforums on frontpage — fel64?

  • @kannued

    Participant

    I don’t want my subforums to showup on frontpage as in http://bbpress.org/forums/topic/subforums-and-markup?replies=12

    I tried fel64’s recommendation:

    <?php foreach( $forums as $forum ) : ?>

    //blaaaaah HTML

    <?php endforeach; ?>

    to this sort of thing:

    <?php foreach( $forums as $forum ) :

    if( !$forum->forum_parent ) { ?>

    //blaaaaaah HTML

    <?php }

    enforeach; ?>

    I get an error on line 60,

    Parse error: syntax error, unexpected T_ELSE in front-page.php on line 60

    Line 60 writes

    <?php endif; else : // $forums ?>

Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.
Skip to toolbar