Skip to:
Content
Pages
Categories
Search
Top
Bottom

If Profile field has data?

  • Avatar of perywinkle
    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)
  • Avatar of yadigit
    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)

You must be logged in to reply to this topic.