Reply To: How to add s2member custom registration field to Buddypress member loop ?????
This code is working. But its showing Current user custom fields for any profile i visit. But i want Particular user custom field under particular profile. How can i do that ? I tried adding ,123 as suggested in that documentation but getting error
<?php do_action( 'bp_before_member_header_meta' ); ?>
<div id="item-meta">
<?php if ( bp_is_active( 'activity' ) ) : ?>
<?php do_action( 'bp_directory_members_item' ); ?>
<?php $theUserID = bp_get_member_user_id();?>
<div id="profile_data">
<li><?php echo get_user_field('gender_id', $theUserID);?></li>
<li><?php echo get_user_field('College_name', $theUserID);?></li>
<li><?php echo get_user_field('course_name', $theUserID);?></li>
</span>
</div>