Skip to:
Content
Pages
Categories
Search
Top
Bottom

Showing Specific Profile Field Data bp_profile_field_data

  • @inhouse

    Member

    Hi, I’m trying to modify the member profile page by editing member-header.php and need some help showing specific profile fields with bp_profile_field_data. I need the optional field data to show up only if someone fills in content. If no content, currently there is a blank line. Also, the web address/email address needs to be hyperlinked as well. Am I going about this thew wrong way completely? The main reason I’m even attempting this is so that City, State and Zip can be separate content fields, but displayed the typical way on one line (City, State Zip).

    `/***
    * If you’d like to show specific profile fields here use:
    * bp_profile_field_data( ‘field=About Me’ ); — Pass the name of the field
    */
    do_action( ‘bp_profile_header_meta’ );
    bp_profile_field_data( ‘field=Business Name’ );
    print (“line break goes here”);
    bp_profile_field_data( ‘field=Street Address’ );
    print (“line break goes here”);
    bp_profile_field_data( ‘field=City’ );
    print (“, “);
    bp_profile_field_data( ‘field=State’ );
    print (“space goes here”);
    bp_profile_field_data( ‘field=Zip’ );
    print (“line break goes here”);
    bp_profile_field_data( ‘field=Phone Number’ );
    print (“line break goes here”);
    bp_profile_field_data( ‘field=Website’ );
    print (“line break goes here”);
    bp_profile_field_data( ‘field=Email Address’ );`

Viewing 1 replies (of 1 total)
  • @inhouse

    Member

    Can anyone help with this? I can get the fields to display but they aren’t conditional. If a user doesn’t fill out a field, a blank space is displayed rather than the lower fields moving up. I can’t get Website or Email to hyperlink either. Is there another way of going about this all together?

Viewing 1 replies (of 1 total)
  • The topic ‘Showing Specific Profile Field Data bp_profile_field_data’ is closed to new replies.
Skip to toolbar