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.
You must be logged in to reply to this topic.