BP 1.7: How do I display username under avatar in activity feed?
-
Hey All;
In the BuddyPress 1.7 activity feed (mytheme/buddypress/activity/entry.php), the user’s avatar gets displayed beside their status update like so:
<div class="activity-avatar"> <a href="<?php bp_activity_user_link(); ?>"> <?php bp_activity_avatar(); ?> </a> </div>
I’d like to display the user’s username underneath their avatar, and I tried using this code, but for some reason she no work.
<div class="activity-avatar"> <a href="<?php bp_activity_user_link(); ?>"> <?php bp_activity_avatar(); ?> </a> <br /> <a href="<?php bp_activity_user_link(); ?>" class="nicename"> @<?php bp_get_displayed_user_username(); ?> </a> </div>
Would someone please kindly show me how to simply display the user’s username/nicename in the activity feed entry?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘BP 1.7: How do I display username under avatar in activity feed?’ is closed to new replies.