Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,871
- Creating & Extending
- 25,908
- Requests & Feedback
- 9,550
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,179
-
You need to somehow pass it the userid. Something possibly like this could work (it’s untested):
`
$userid = bp_core_get_userid( $username );
bp_profile_field_data( array(‘user_id’=>$userid,’field’=>’fieldname’ ));
`