BP – xprofile_get_field_data()
-
Hello! Working on some new theming strategies for BP 1.5 and I was wondering what the correct way of referencing specific meta_data for use in a custom template:
xprofile_get_field_data();
seems to be the right way to go, but I can’t seem to get it to work.
`
$user_id = bp_loggedin_user_id(); //current logged in user
$field = ’19’; // the ID of the field referenced in table wp_bp_xprofile_fields
$major = xprofile_get_field_data( $field, $user_id );
`
This doesn’t quite seem to be working any suggestions would be greatly appreciated!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘BP – xprofile_get_field_data()’ is closed to new replies.