Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Display BuddyPress components on WP Author page

@karmatosed

Moderator

Just to be clear, what you are trying to do is display like the user avatar and other details on the author page? You can’t just use member-header as that looks at the ‘current user’. In this case the author page doesn’t have the right information for those calls to work.

What I’d suggest is you get the userid and use functions like these:

bp_core_fetch_avatar( array( 'item_id'=>$userid, 'width'=>150));

echo bp_core_get_username($userid);

bp_last_activity( $userid );

That way you’re creating the member-header yourself. You could even have a template part to do this and just call that in the right place.

Skip to toolbar