Hi Chris,
Welcome to BuddyDev.You can do it easily by copying the activity loop. I recommend making a copy of activity loop and removing the undesired part.
You can use that inside a page template if that helps.
Hi Chris,
Welcome to the BuddyDev. Please paste the following code in your bp-custom.php and use shortcode [activity-custom-loop] in your page or post.
function buddydev_activity_custom_loop() { if( ! function_exists( 'buddypress' ) || ! bp_is_active( 'activity' ) ) { return ''; } ?> <?php if ( bp_has_activities( array( 'per_page' => false ) ) ) : ?> <ul id="activity-stream" class="activity-list item-list"> <?php while ( bp_activities() ) : bp_the_activity(); ?> <li class="<?php bp_activity_css_class(); ?>" id="activity-<?php bp_activity_id(); ?>"> <div class="activity-content"> <div class="activity-header"> <?php bp_activity_action(); ?> </div> </div> </li> <?php endwhile; ?> </ul> <?php else : ?> <div id="message" class="info"> <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p> </div> <?php endif; ?> <?php } add_shortcode('activity-custom-loop','buddydev_activity_custom_loop');
Let me know if it works for you or not.
Thank You
Ravi
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
This topic is: not resolved