Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group Conditional Tags


  • nickkky
    Participant

    @nickkky

    hi, do buddypress have conditional tags for group and profile? like is_single() , is_single(‘id’) so we can have is_group() or is_profile()

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

  • r-a-y
    Keymaster

    @r-a-y

    For groups, this seems to work:

    <?php if ( bp_is_page( BP_GROUPS_SLUG ) ) : ?>YOUR STUFF<?php endif; ?>

    Not sure about profile… I could use that as well!


    madyogi
    Participant

    @madyogi

    I know this is an old topic, but did anyone ever figure out if there is a conditional that would indicate if you are looking at a member profile:

    if (I’M LOOKING AT A MEMBER PROFILE)

    do this

    else

    do this

    It seems like bp_is_user_profile would do this, but it returns true when the profile is not being displayed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Group Conditional Tags’ is closed to new replies.
Skip to toolbar