Reply To: display only one group activity stream on homepage.
Thanks @rosyteddy. Second link fit perfectly !
Activity stream of the particluar group appears well with this:
<?php if ( bp_has_activities( ‘&primary_id=2’ ) ): ?>
Now I would like to automate this.
I get primary_id on my page when I write this
<?php echo get_post_meta($post->ID, ‘test_bp_group_id’, true); ?>
But the following doesn’t work
<?php if ( bp_has_activities( ‘&primary_id=get_post_meta($post->ID, ‘test_bp_group_id’, true);’ ) ): ?>
Any idea?