Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: BuddyPress 2.1.1 Adding details to member-header.php

@mdory89

Participant

I should’ve explained more. In the WordPress admin panel, If you click Users-Profile Fields, the profile field created and placed into the member-header.php file doesn’t show at all.

Here’s a tutorial I followed: http://code.tutsplus.com/articles/developing-buddypress-themes-part-3-buddypress-15-member-pages-the-overall-user-experience–wp-21856

The code:

<?php
   
  $favorite_spot = bp_get_profile_field_data( 'field=Favorite Camping Spot' ) ;
echo '<p class="profile-fields">My Favorite Camping Spot: ' .$favorite_spot. '</p>';
   
  $necessary_item = bp_get_profile_field_data( 'field=One Necessary Item' ) ;
echo '<p class="profile-fields">My One Necessary Item: ' .$necessary_item. '</p>';
 
  ?>
Skip to toolbar