Forums
-
- Forum
- Posts
-
- Installation
- 28,383
- Troubleshooting
- 62,249
- Themes
- 10,390
- Plugins
- 15,310
- Requests & Feedback
- 14,897
- Showcase
- 3,252
-
It’s because you are destroying $user_id
This is wrong:
$user_id = bb_get_user( $user_id );
$bb_twitter = $user_id->social_twitter;
You should do:
$user = bb_get_user( $user_id );
$bb_twitter = $user->social_twitter;
$user_id
holds the id number, not the entire user object.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS