@smuda
14 years, 9 months ago
hey there,
i currently use the following code to display a special field from a users profile within buddypress:
<?php echo xprofile_get_field_data('7'); ?>
i now want to use that same data right beside a users name, if he comments on a blogpost.
i’m using the latest buddypress and wpmu.
@boonebgorges
You’ll need to feed the user_id of the user to the function. I think something like this will work:
<?php echo xprofile_get_field_data( '7', $comment->user_id ); ?>
@Boone Gorges awesome!
thank you very much, works great
Cool!
@smuda
14 years, 9 months ago
hey there,
i currently use the following code to display a special field from a users profile within buddypress:
<?php echo xprofile_get_field_data('7'); ?>
i now want to use that same data right beside a users name, if he comments on a blogpost.
i’m using the latest buddypress and wpmu.