Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

  • martni
    Participant

    @martni

    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” ) ): ?>


    martni
    Participant

    @martni

    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?


    martni
    Participant

    @martni

    Did you find a clean solution to select which buddypress template file is used by the member type?


    martni
    Participant

    @martni

    Anybody faced that before ?


    martni
    Participant

    @martni

    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?

Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar