Display values of profile field separately

I’ve added a profile field to my header (in BuddyPress) which displays as four comma separated values:

Value #1, Value #2, Value #3, Value #4.

Is there a simple way to display them separately as shown in the example below or to output just one of the values?

screen

My code snippet: <?php bp_member_profile_data( 'field=My Values' ); ?>

Any help appreciated!

use explode and do whatever you want with the shards.

1 Like
Sponsor our Newsletter | Privacy Policy | Terms of Service