Skip to:
Content
Pages
Categories
Search
Top
Bottom

Help with the Member group


  • emilia015
    Participant

    @emilia015

    Hello, I need help please. I am trying to show the list of members of a group. I have the code here

    <?php
    
        global $groups_template; 
     
        if ( empty( $group ) ) { 
            $group =& $groups_template->group; 
        } 
     
        if ( ! empty( $group->is_member ) ) : ?> 
     
            <ul id="group-members"> 
     
                <?php foreach( (array) $group->is_member as $is_member ) { ?> 
     
                    <li> 
                        <a href="<?php echo bp_core_get_user_domain( $is_member->user_id, $is_member->user_nicename, $is_member->user_login ) ?>"></a>
                    </li> 
     
                <?php } ?> 
     
            </ul> 
     
    <?php else : ?> 
     
            <span class="activity"><?php _e( 'No Members', 'buddypress' ) ?></span> 
     
    <?php endif; 
    
    ?>

    Here is the result.

    <ul id="group-members"> 
         <li><a href=""></a></li> 
    </ul>

    I would greatly appreciate any help. Thank you very much in advance

  • You must be logged in to reply to this topic.
Skip to toolbar