Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Show wire and user activity in blog instead of profile


r-a-y
Keymaster

@r-a-y

Try this in your home.php:

<?php if ( function_exists( 'bp_activity_get_list' ) ) : ?>

<?php
bp_activity_get_list(
get_the_author_ID(), // The ID of the user to get activity for.
bp_word_or_name( __( "My Activity", 'buddypress' ), __( "%s's Activity", 'buddypress' ), true, false ), // The title of the activity list.
bp_word_or_name( __( "You haven't done anything yet.", 'buddypress' ), __( "%s hasn't done anything yet.", 'buddypress' ), true, false ) // What to show when there is no activity.
);
?>

<?php endif; ?>

Untested… try it and report back. This will show the activity block, just like on a BP profile page.

Skip to toolbar