Buddypress checkbox field display in profile
I am wondering if there is a way to format how a checkbox profile field displays in the profile.
What are your favorite sports?
Checkbox options of Hockey, Golf, Soccer, Football and Basketball.
User selects Hockey, Golf and Football.
Code I have right now is as follows:
$myfield = xprofile_get_field_data( 'Favorite Sports', $user_id_from_email, $multi_format = 'comma' );
if ( empty ( $myfield) ):
<?php else: ?>
<p><b>Favorite Sports:</b> <?php echo $myfield; ?></p>
<?php endif; ?>
Way it displays is:
Favorite Sports: Hockey, Golf, Football
Is it possible to have it display the results vertically?
Is this at all possible or am I dreaming lol?
- The topic ‘Buddypress checkbox field display in profile’ is closed to new replies.