12 years, 6 months ago
You are right, It will work on members page only, as it uses $bp->displayed_user which is set for member pages only.
You can accomplish the same by using function
“bp_core_get_username” on any of the pages. take a look at the function definition.
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service