Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • 0bservator
    Participant

    @0bservator

    Guess I can check if the current group ID corresponds with the group I am in.

    <?php 
    
    // Let's say my group ID = 1
    $exclude_admins_mods = (bp_get_group_id() == 1) ? 0 : 1;
    if (bp_group_has_members(array('exclude_admins_mods'=> $exclude_admins_mods))) : 
    
    /* Member details */
    
    endif;
    
    ?>

    0bservator
    Participant

    @0bservator

    <?php $args = array(
    'group_id' => bp_get_group_id(),
    'exclude_admins_mods'=> 0
    ); ?>

    In the default groups loop:

    <?php if (bp_group_has_members($args)) : ?>
    // member details
    <?php endif; ?>

    or when you use the groups_get_group_members() function:
    <?php $groups_get_group_members = groups_get_group_members($args); ?>

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