Skip to:
Content
Pages
Categories
Search
Top
Bottom

Trouble with Members Loop

  • Avatar of Marcella
    Marcella
    Participant

    @marcella1981

    I have this

    
    <?php if(bp_has_members('type=active')) : ?>					
    					<?php while(bp_members()) : bp_the_member(); ?>
    						<li>
    							<div class="thumb">
    								<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar('type=full&width=75&height=75'); ?></a>
    							</div>
    							<div class="details">
    								<h4><a href="<?php bp_member_permalink(); ?>">@<?php bp_member_name(); ?></a></h4>								
    								<p class="view-profile"><a href="<?php bp_member_permalink(); ?>">View Profile</a></p>
    							</div>
    						</li>
    					<?php endwhile; ?>	
    				<?php else: ?>
    					<li class="message info">No members found.</li>
    				<?php endif; ?>
    

    and

    
    <?php if(bp_has_members('type=popular')) : ?>					
    					<?php while(bp_members()) : bp_the_member(); ?>
    						<li>
    							<div class="thumb">
    								<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar('type=full&width=75&height=75'); ?></a>
    							</div>
    							<div class="details">
    								<h4><a href="<?php bp_member_permalink(); ?>">@<?php bp_member_name(); ?></a></h4>								
    								<p class="view-profile"><a href="<?php bp_member_permalink(); ?>">View Profile</a></p>
    							</div>
    						</li>
    					<?php endwhile; ?>	
    				<?php else: ?>
    					<li class="message info">No members found.</li>
    				<?php endif; ?>
    

    and

    
    <?php if(bp_has_members('type=online')) : ?>					
    					<?php while(bp_members()) : bp_the_member(); ?>
    						<li>
    							<div class="thumb">
    								<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar('type=full&width=75&height=75'); ?></a>
    							</div>
    							<div class="details">
    								<h4><a href="<?php bp_member_permalink(); ?>">@<?php bp_member_name(); ?></a></h4>								
    								<p class="view-profile"><a href="<?php bp_member_permalink(); ?>">View Profile</a></p>
    							</div>
    						</li>
    					<?php endwhile; ?>	
    				<?php else: ?>
    					<li class="message info">No members found.</li>
    				<?php endif; ?>
    

    All loops return nothing.

    Am I doing something wrong or what could be happening here? There are members in the site…

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

You must be logged in to reply to this topic.