Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group admin and mods loops – not working


  • Marcella
    Participant

    @marcella1981

    I have 2 loops in the sidebar on a group page.

    
    <?php if(bp_has_members('&include='. bp_group_admin_ids())) : ?>			
    	<?php while(bp_members()) : bp_the_member(); ?>
    		<li>
    			<a href="<?php bp_member_permalink(); ?>">
    				<div class="thumb">
    				<?php echo bp_core_fetch_avatar(array('item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 40, 'height' => 40, 'alt' => sprintf(__('Profile picture of %s', 'buddypress'), bp_get_member_name()))); ?>
    				</div>
    				<div class="details">
    					<strong><?php bp_member_name(); ?></strong>
    					<em><?php bp_member_last_active(); ?>
    				</div>
    			</a>
    		</li>
    	<?php endwhile; ?>				
    <?php else : ?>
    	<li>No administrators in this group.</li>
    <?php endif; ?>
    

    and

    
    <?php if(bp_group_has_moderators()) : ?>			
    	<?php if(bp_has_members('&include=' . bp_group_mod_ids())) : ?>			
    		<?php while(bp_members()) : bp_the_member(); ?>
    			<li>
    				<a href="<?php bp_member_permalink(); ?>">
    					<div class="thumb">
    					<?php echo bp_core_fetch_avatar(array('item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 40, 'height' => 40, 'alt' => sprintf(__('Profile picture of %s', 'buddypress'), bp_get_member_name()))); ?>
    					</div>
    					<div class="details">
    						<strong><?php bp_member_name(); ?></strong>
    						<em><?php bp_member_last_active(); ?>
    					</div>
    				</a>
    			</li>
    		<?php endwhile; ?>				
    	<?php endif; ?>
    <?php else : ?>
    	<li>No moderators in this group.</li>
    <?php endif; ?>
    

    Neither of these loops output anything, even though they are the same as that found in groups/single/admin.php

    Any ideas?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Group admin and mods loops – not working’ is closed to new replies.
Skip to toolbar