Buddypress Activity Plus for BuddyPress Groups – Not showing on custom template

Hi –

We’re coding up a Buddypress site including the great Activity Plus plugin.

Activity Plus is showing/working fine in standard BuddyPress Group templates. However, we’re coding some bespoke taxonomy pages that pull in a BuddyPress Group Feed/Activity form, and it’s not showing under the form on this bespoke template.

I guess Activity Plus may need some hook that we’ve not included in our template, or maybe it does a check for Buddypress page? Can you help resolve?

I’ve included the code we’re using for the form in our bespoke template below.



<?php if ( bp_has_groups ( 'slug=' . $issue_group_slug . '&max=1&user_id=' . $user_id ) ) :

while ( bp_groups() ) : bp_the_group();

do_action( 'bp_before_group_activity_post_form' );

if ( is_user_logged_in() && bp_group_is_member($issue_group_id) ) : ?>

<form action="<?php bp_activity_post_form_action(); ?>" method="post" id="whats-new-form" name="whats-new-form" role="complementary">

<?php do_action( 'bp_before_activity_post_form' ); ?>

<div id="whats-new-row" class="row">

<div id="whats-new-avatar" class="col-xs-2">

<a href="<?php echo bp_loggedin_user_domain(); ?>">
<?php bp_loggedin_user_avatar( 'width=' . bp_core_avatar_thumb_width() . '&height=' . bp_core_avatar_thumb_height() ); ?>


<div id="whats-new-post-box" class="col-xs-10">

<div id="whats-new-content">

<div id="whats-new-textarea">

<textarea name="whats-new" id="whats-new" cols="50" rows="4" placeholder="Add your comment"><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_attr( $_GET['r'] ); ?> <?php endif; ?></textarea>


<div id="whats-new-options">

<div id="whats-new-submit">

<input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php _e( 'Add Comment', 'buddypress' ); ?>" />
<!-- Tell BuddyPress which group to post the activity to -->
<input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
<input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php echo $issue_group_id; ?>" />


<?php do_action( 'bp_activity_post_form_options' ); ?>

</div><!-- #whats-new-options -->

</div><!-- #whats-new-content -->

<?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?>
<?php do_action( 'bp_after_activity_post_form' ); ?>

</div><!-- #whats-new-post-box -->

</div><!-- #whats-new-row -->

</form><!-- #whats-new-form -->

<?php endif; ?>

<?php do_action( 'bp_after_group_activity_post_form' ); ?>

<?php endwhile; endif; ?>