If Profile field has data?
I have this code and the fields are NOT required:
`<?php bp_member_profile_data( 'field=City' );
bp_member_profile_data( ‘field=State or Province’ );
bp_member_profile_data( ‘field=Country’ ); ?>`
I’m wondering how to create the code for adding a comma(,) before the field IF the field has data
So my out put would be: City, State, Country or City, Country
Any help would be greatly appreciated.
- The topic ‘If Profile field has data?’ is closed to new replies.