Skip to:

Activity on the Members loop

  • turleybw


    I’m working on a custom members page, and I’m trying to display thumbnails of each member’s recent activity next to their basic profile information, but it’s not working as expected.
    Hopefully you can give me some insight.

    Here’s the code I’m working with:

    <?php if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ).’&max=3′.’&user_id=’.bp_member_user_id()) ) : ?>
    <?php while ( bp_activities() ) : bp_the_activity(); ?>

    <?php locate_template( array( ‘activity/entry.php’ ), true, false ); ?>
    <?php endwhile; ?>
    <?php endif; ?>
    Buddypress 1.7.2

    As you can see I’m filtering activity so it only displays three items for each user, and I’m also trying to filter the activity by user id which is where the problem is. If I input a specific user id number it filters all the activity on the page to that user id. So, I’m attempting to call each user’s id with the function bp_member_user_id(). Please let me know what you’d change to correctly display each member’s recent activity.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Activity on the Members loop’ is closed to new replies.
Skip to toolbar