Skip to:
Content
Pages
Categories
Search
Top
Bottom

exclude_admins_mods is not taking in the 'Group Members Loop'


  • Mariusooms
    Participant

    @mariusooms

    I’m trying to construct this default loop, but passing the parameter

    exclude_admins_mods=false

    does not seem to include either admins or moderators. Below is the loop with group_id specified since I’m displaying it outside the group loop, members show fine:

    <?php if ( bp_group_has_members( 'exclude_admins_mods=false&per_page=30&group_id=7' ) ) : ?>

    <ul id="member-list" class="item-list">
    <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
    <li>
    <?php bp_group_member_avatar() ?>
    </li>
    <?php endwhile; ?>
    </ul>

    <?php else: ?>

    <div id="message" class="info">
    <p>This group has no members.</p>
    </div>

    <?php endif; ?>

    Would appreciate some input.

    Regards,

    Marius

  • The topic ‘exclude_admins_mods is not taking in the 'Group Members Loop'’ is closed to new replies.
Skip to toolbar