Forum Replies Created
-
In reply to: display only one group activity stream on homepage.
Ok it’s working fine like that for me.
<?php $test=get_post_meta($post->ID, ‘test_bp_group_id’, true); ?>
<?php if ( bp_has_activities( “&primary_id=$test” ) ): ?>
In 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?In reply to: Determine Profile Template File by Member TypeDid you find a clean solution to select which buddypress template file is used by the member type?
In reply to: How to link custom posts type (CPT) with BP groupsAnybody faced that before ?
In reply to: How to link custom posts type (CPT) with BP groupsHello,
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?