Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Check if group has forum


  • pravdamien
    Participant

    @pravdamien

    HELP ! I’ve been going through the codex but I can’t seem to find anything.

    In my theme, on single group homepages, i would like to output something if a group has a forum, and I can’t seem to find the right condition.

    I’m looking for something like

    <?php if_group_has_forum() : ?>
    // do something
    <?php endif; ?>

    I’m using latest versions of WP and BP and BBPRESS

Viewing 2 replies - 1 through 2 (of 2 total)

  • shanebp
    Moderator

    @shanebp

    Please use the code button when posting code.
    Try:

    <?php if( bp_group_is_forum_enabled() ) : ?>
       // do something
    <?php endif; ?>

    pravdamien
    Participant

    @pravdamien

    Yes, awesome that works. thank you so much.
    I must have overlooked it in the codex.
    (and sorry about the code, typo)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Check if group has forum’ is closed to new replies.
Skip to toolbar