Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • vinay24k
    Participant

    @vinay24k

    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>
    

    vinay24k
    Participant

    @vinay24k

    I am using Latest version of Buddypress and WordPress. Also Default Buddypress theme.

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar