Skip to:
Content
Pages
Categories
Search
Top
Bottom

Help with BuddyPress Friends Loop

  • I’m trying to output a modified version of the friends loop on the homepage … but I am getting the error: bp_has_friendships is not defined. I have no problems putting a modified members or groups loop together. I’m using BP 1.2 and WP single user 2.9.1 Is there something extra I need to include in order to get this working?

    <?php if ( bp_has_friendships('type=active&per_page=6&max=50&user_id=' . bp_loggedin_user_id() ) ) : ?>

    <div class="avatar-block">

    <?php while ( bp_user_friendships() ) : bp_the_friendship(); ?>

    <li class="vcard">

    <div class="item-avatar">

    "><?php bp_friend_avatar_thumb() ?>

    </div>

    <?php endwhile; ?>

    </div>

    <?php else: ?>

    You have no friends.

    <?php echo ""; ?>

    <?php endif; ?>

Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Help with BuddyPress Friends Loop’ is closed to new replies.
Skip to toolbar