Display logged in users cover image in sidebar
-
I am trying to add the currently logged in users profile info along with a cover image to the activity page on my buddypress site. At the moment I am using this code to echo out the profile data at the top of my my activity.php however for some reason the cover image is not displaying.
<div class="activity-sidebar-left"> <div id="item-header" role="complementary"> <?php add_filter('bp_displayed_user_id','bp_displayed_outside_bp'); function bp_displayed_outside_bp($id){ return ($id==0) ? get_current_user_id() : $id; } if ( bp_displayed_user_use_cover_image_header() ) : bp_get_template_part( 'members/single/cover-image-header' ); else : bp_get_template_part( 'members/single/member-header' ); endif; ?> </div><!-- #item-header --> </div>
How would I go about adding the users header cover image?
- The topic ‘Display logged in users cover image in sidebar’ is closed to new replies.