Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom Member Profile Fields


  • ccookasi
    Participant

    @ccookasi

    I have a (private) corporate intranet that incorporates BuddyPress for Employee Profiles.

    Without giving users the ability to edit their own profiles, I would like the Member Profile Pages to display the Profile Photo, User Name (possibly regardless of “Display Name” choice), User Email, User Description (renamed “Position”), and a link to the local job description page for their position.

    Is it possible to modify the profile fields from wp-profile.php etc. using bp-custom.php and action hooks? Is there a better way to customize the member profile page template?

    Thank you.

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

  • Boone Gorges
    Keymaster

    @boonebgorges

    If you need to do extensive customization to the appearance of the user profile, I’d recommend overriding BP’s templates in your child theme. For example, you can copy the file wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php to wp-content/themes/your-theme/buddypress/buddypress/members/single/profile/profile-loop.php. Then, make the modifications you’d like in the copied file.

    Note that wp-profile.php is only used when the Extended Profiles component is disabled.


    ccookasi
    Participant

    @ccookasi

    Thank you, Boone.

    Is there any prefix material that I should alter to make it look for that page first?

    Also, is there a resource to find particular user information (e.g., wp_displayname) in order to call it for the profile page?

    Thank you, again.


    ccookasi
    Participant

    @ccookasi

    As I have gone through the above steps, the changes that I have made have not appeared on the site.

    Is there anything I need to do in addition to placing the files in the specific directory structure? Such as registering it in another file? Enqueing it?

    Thanks.


    Boone Gorges
    Keymaster

    @boonebgorges

    There should be nothing additional required – no registration or enqueuing.

    It looks like I made a typo in my original comment – I doubled the /buddypress/ path. Here’s the proper destintation in your theme:

    
    wp-content/themes/your-theme/buddypress/members/single/profile/profile-loop.php
    

    Sorry about that!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar