Display xprofile data in Activity Stream
-
Hello,
I’d like to display next to the member name in the activity stream, also the company field I created in the user’s extended profile.
I cannot display the field, I can do it only if in the member page.
I am not sure which function I should use, tried with:
$company= xprofile_get_field_data( ‘field=company’, bp_get_member_user_id() );
$company= xprofile_get_field_data( ‘field=company’ );
$company= bp_get_member_profile_data( ‘field=company’, bp_get_member_user_id() );
$company= bp_get_member_profile_data( ‘field=company’ );I am putting this code inside activity-loop.php before
<?php locate_template( array( 'activity/entry.php' ), true, false ); ?>
I appreciate if someone could point me to the right direction.
Thanks!
- The topic ‘Display xprofile data in Activity Stream’ is closed to new replies.