Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: specific profile fields in the loop, if empty show content previous member

@alscott99

Participant

Thanks for your response, @shanebp.

That code still has the fields repeating, but perhaps I entered it wrong? Since you didn’t include the php tags I’m not sure where they go; I did it this way:

<?php $data = bp_member_profile_data( 'field=Current Location' ); ?>
<?php if( $data != false ) ?>
<?php echo $data; ?>
Skip to toolbar