Skip to:

Showing group admin in loop

  • Martijn



    We build in some custom member loops on ‘location’ pages. Each location has a group linked to it.
    The group members should be shown on that page.

    This works great, all members are shown with their profile pic, and custom field information in nicely styled floating divs.

    The group leader / administrator should also be included in this.
    In each of these groups 1 of the members is the actual ‘manager’ of that location and is also made administrator of that group.
    But they are not shown in the loop.

    can we add these and how would we do that?

    Code is currently like this:

    <?php if ( bp_group_has_members('group_id='.get_field("groep")) ) : ?>
     <div id="locatie-medewerkers" >
    <h2 class="med-title" >Medewerkers</h2>
      <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
        <div class="medewerker-wrap">
          <div class="item-avatar">
             <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar('type=full&height=150&width=150'); ?></a>

    + all the other field and ending the loop etc.
    My guess if something should change it will be before the loop.

    Kind regards,


Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar