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?
Hello,
I meant CPT (custom posts type).
I would like to merge a personnal CPT,
( archive: http://www.mydomain.com/shops/ and single : /shops/shop01 )
with buddypress groups in order to keep the same template (from this CPT) and having an activity stream and members management for this custom post.
For the moment just I tried to add group’s activity stream to a different post (buddypress group and CPT post are distinct). I’m wondering if there is a way to make it simplier and less redondant?