Reply To: Buddypress checkbox field display in profile
Thanks for the reply Shane. My apologies for the delay in responding myself but I just got back on working on this issue this weekend here.
One field I am working on right now involves displaying either Services Required or Services Provided as you can see in the code below. Depending on the type of user you are will determine which field you have filled in thus which field will display on the user profile. Unfortunately my PHP is pretty weak thus the foreach loop you mentioned has me scratching my head. The code below does what I want with the exception of it displaying horizontally instead of vertically. I am hoping you would be able to give me some detailed direction in what way to go for the PHP challenged guy that I am lol.
<?php
$bpProfileField = xprofile_get_field_data( 'Services Required', $user_id_from_email, $multi_format = 'comma' );
if ( empty ( $bpProfileField) ):
?>
<div class="profile_fields"><b>Services Provided:</b> <span><?php bp_profile_field_data( 'field=Services Provided' );?></span></div>
<?php else: ?>
<p><b>Services Required:</b> <?php echo $bpProfileField; ?></p>
<?php endif; ?>