-1

Generally buddypress have default activity page member/username/activity

In this page or any custom page i need to get my following user's activities feed

1 Answers1

0
   <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) .'&object=friends' ) ) :  ?>

   <?php //if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
       <?php while ( bp_activities() ) : bp_the_activity(); ?>

           <?php locate_template( array( 'buddypress/activity/entry.php' ), true, false ); ?>

       <?php endwhile; ?>
   <?php endif; ?>

object optional

The object type to filter on (can be any active component ID as well as custom component ID’s)

Example arguments: groups, friends, profile, status, blogs Default value: false (no filter)

Sathish Kumar VG
  • 2,154
  • 1
  • 12
  • 19