Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,006
- How-to & Troubleshooting
- 129,530
- Creating & Extending
- 25,790
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,784
- Showcase
- 3,316
- Ideas
- 1,398
- Miscellaneous
- 9,170
-
In your get_user_name_display() function, you also need to declare $bp as global, otherwise it will not be able to pull the data from $bp->displayed_user->id.
So, do this:
function get_user_name_display() {
global $wpdb, $bp;
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS