Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group Conditional Tags

  • Avatar of nickkky
    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)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @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!

    Avatar of madyogi
    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)

You must be logged in to reply to this topic.