Skip to:
Content
Pages
Categories
Search
Top
Bottom

How Do I Display A Custom Profile Field?

  • @kjgbriggs

    Participant

    I have a custom profile field only visible and editable to admins, and I want to display it’s value in 2 places.

    1) On the profile page of the user (visible to all), as shown in the WPSymposium example (this is what I want to replicate)

    2) On the forum under the profile “online” data field, shown in the second half of the image (a mockup)

    I also want to be able to style these with CSS, I will most likely want an orange background.

    How exactly do I do this?

    the image referenced in 1 and 2 is below.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @henrywright

    Moderator

    You can do that with this:

    bp_member_profile_data( 'field=name' );

    Where name is the profile field name.

    @kjgbriggs

    Participant

    Sorry for not responding for a little while.

    Where do I put this and how do I make sure it doesn’t get removed when I update BuddyPress or BBPress?

    @danbp

    Participant

    Where do I put this and how do I make sure it doesn’t get removed

    Custom code can be added to bp-custom.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How Do I Display A Custom Profile Field?’ is closed to new replies.
Skip to toolbar