Display profile fields on members page
I’m new to wordpress/buddypress and I’m having trouble displaying field names.
I have a field named “Age:” and using the following code:
bp_member_profile_data( 'field=Age:' );
in the members-loop file, the members age is displayed. I would like to add “Age: ” in front of the number, I searched and found this thread:
but all the suggestions leave me with a blank members page???
If I remove the opening and closing php tags for the bp_member_profile_data section and use
<p>Age: <php bp_member_profile_data( 'field=Age:' );?><p>
I get the following under all profiles despite only one having an age value set:
/*** * If you want to show specific profile fields here you can, * but it’ll add an extra query for each member in the loop * (only one regardless of the number of fields you show): * * bp_member_profile_data( ‘field=the field name’ ); */
the one profile with an age value set isn’t shown.
Can anyone see where I’m going wrong with this?
- The topic ‘Display profile fields on members page’ is closed to new replies.