Reply To: How can I set up activity data from an array (of objects or IDs)?
To answer my own question, first:
//Get friends Loop
do_action( 'bp_before_activity_loop' );
if ( bp_has_activities( bp_ajax_querystring( 'activity' )."&scope=friends") ) :
$friends_activites = $activities_template->activities;
endif;
do_action( 'bp_after_activity_loop' );
//Get personal Loop
do_action( 'bp_before_activity_loop' );
if ( bp_has_activities( bp_ajax_querystring( 'activity' )."&scope=just-me") ) :
$personal_activites = $activities_template->activities;
endif;
do_action( 'bp_after_activity_loop' );
Then:
$activities_template->activities = array_merge($personal_activites,$friends_activites);
Then loop:
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<?php bp_get_template_part( 'activity/entry' ); ?>
<?php endwhile; ?>
There might be a little I’m leaving out. If you view my profile and look at some of my forum activity you can probably find the whole code snippet. Too tired to post all of it.