Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How can I get a group ID that displayed user is joining?


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…

Skip to toolbar