Skip to:
Content
Pages
Categories
Search
Top
Bottom

How do I get the Group ID in this loop?

  • Here’s my code:

    <?php if ( bp_get_group_status() == ('public')) {
    $team_id = $bp->group->id; ?>
    <option id="field_reg_groups_” name=”field_reg_groups[]” value=”” />:

    No teams are available at this time.

    This line isn’t working as expected: $team_id = $bp->group->id;

    How do I get the group id here?

    Please don’t suggest bp_group_id(); — already tried that and it doesn’t work. The value won’t store for some reason.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I get the Group ID in this loop?’ is closed to new replies.
Skip to toolbar