How to add s2member custom registration field to Buddypress member loop ?????
-
I have Custom fields of S2 members as follows :
Gender
College
CourseI want to add these to members profiles under Last Activity. With little nowledge and surfing over internet i found that i need to add a code in Members-loop.php I also found that the following code will do the thing. But it didnt work for me :
<?php do_action( 'bp_directory_members_item' ); ?> <?php $theUserID = bp_get_member_user_id();?> <div id="profile_data"> <span class="profile_fields"> <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>
Please help me to do it right.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to add s2member custom registration field to Buddypress member loop ?????’ is closed to new replies.