Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress 2.1.1 Adding details to member-header.php

Viewing 4 replies - 1 through 4 (of 4 total)

  • shanebp
    Moderator

    @shanebp

    but not in the admin menu profile fields section

    What exactly are you referring to?
    The adminbar at the top of each page? If so, member-header.php does not affect that.


    mdory89
    Participant

    @mdory89

    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>';
     
      ?>

    shanebp
    Moderator

    @shanebp

    I cannot duplicate your issue.
    In wp-admin, Users > Profile Fields, are your fields part of the ‘Base’ group of fields?
    Or are they under another group, in another tab to the right of ‘Base’?

    btw: instead of bp_get_profile_field_data, you should use bp_get_member_profile_data
    That tutorial is for BP 1.5, very old.


    mdory89
    Participant

    @mdory89

    Ah ok, I will try what you wrote, If it doesn’t work I’ll let you know.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘BuddyPress 2.1.1 Adding details to member-header.php’ is closed to new replies.
Skip to toolbar