Skip to:
Content
Pages
Categories
Search
Top
Bottom

If Profile field has data?


  • perywinkle
    Participant

    @perywinkle

    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.

Viewing 1 replies (of 1 total)

  • yadigit
    Participant

    @yadigit

    Im working on something that is almost like it.

    here is my code
    `

    Set to Private!

    `
    I hope this gave you some what of an idea for an answer.

    So far i’ve gotten no where. I’ll keep you updated if I find the answer to my question.

Viewing 1 replies (of 1 total)
  • The topic ‘If Profile field has data?’ is closed to new replies.
Skip to toolbar