Hi guys, I wonder if one of you could kindly help me here please? Basically, I’m using the code below to randomly show 5 Avatar profile images on my BuddyPress site – This all works just fine. However, I ONLY want to show the Avatars of members who have bothered to upload their own picture, and not show my themes default image within the Avatars that get returned.
Any ideas how I can modify the code to show only member uploaded avatars?
<?php if ( bp_has_members( 'type=random&max=5' ) ) : ?> <?php while ( bp_members() ) : bp_the_member(); ?> <a href="<?php bp_member_permalink() ?>"><?php bp_member_avatar('type=full&width=125&height=125') ?></a> <?php endwhile; ?> <?php endif; ?>
Thanks for any help