Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Olivia
    Participant

    @oliviabuddy

    Thanks ray,
    I tried both

    <?php if ( bp_get_group_id(1) ) { echo ‘yes’; } ?>

    and

    <?php global $bp; if ( $bp->groups->current_group->id == 1 ) { echo ‘yes’; } ?>

    but they are not working…


    Olivia
    Participant

    @oliviabuddy

    Oops, HTML tags are disappeared! I wanted to say

    if( [group ID that displayed user is joining] == 1){
    echo ‘<div class="classA">‘;
    } else {
    echo ‘<div class="classB">’;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar