Skip to:

How to allow users to edit profile fields from their buddypress profile page

  • Tim2376


    Hi Guys!

    I have a quick question. I am wondering what is the best way to allow buddypress users to edit and display their profile data on their profile page without having to go to the admin?

    Is there a plugin to do something like that? I was thinking about using the BuddyPress Custom Profile Menu plugin to create new tabs on the profile page. I can then add new profile fields from the admin… how could I then display this info on users’ profile pages? I would want them to be able to edit it without going to the admin.

    Is this possible with a couple plugins or will I have to custom code it? If I need to custom code this, does anyone have any examples of how to go about it?

    Thanks in advance!

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

  • Ben Hansen


    the front end buddypress profile is not connected to the backend one (for the most part) you may be missing the fact that the front end profile fields need to be set by you in the profile fields section of your users settings in wp admin. those fields are only editable from the front end by default.



    Yes, I know you can edit all the field from the back end. However, I am trying to get it to allow you to show and edit the fields from the front end. Here were the steps I am thinking about using:

    1) Use BuddyPress Custom Profile Menu plugin to create new tabs on the profile page like, “about”
    2) make a function in function.php of my theme that would display the content for a user and allow them to edit it if it was their profile.
    3) create a shortcode function that linked to the function in step 2.
    4) Add the shortcode in the new page created with BuddyPress Custom Profile Menu plugin in step 1.

    I know how to do step 1, 3, and 4. I have an idea of how to do step 2, but I am a little fuzzy on it. Here is what I was thinking(I don’t really know php):

    function ProfileAboutPageContent(){
        if(bp_loggedin_user_id() == $GLOBALS['bp']->displayed_user->userdata->user_login)
        echo "<p>'"bp_profile_field_data( 'field=User Bio' )"'</p>";
        //Allow user to edit the content(not sure how)
        } elseif {
        echo "<p>'"bp_profile_field_data( 'field=User Bio' )"'</p>";
    add_shortcode('AboutContent', 'ProfileAboutPageContent');

    Are there any errors in this code? I am not sure how to allow users to edit the content if they are the right user. Any ideas on how I could change this code? I am planning on putting this code in the function.php of my current theme.

    The idea is that after I get this function and short code right I can add the shortcode to the new page I can create with the BuddyPress Custom Profile Menu plugin.

    If anyone would be willing to help me figure this out I would greatly appreciate it. Thanks!



    I think we’re a bit confused because this is a native feature of one of BuddyPress’ default components. In Admin CP -> Settings -> BuddyPress Components you find one called Account Settings.

    Allow your users to modify their account and notification settings directly from within their profiles.

    The link should be, though there should be a tab in the profile itself:

    Replace example and USERNAME.

    Ben Hansen


    if you are talking about editing the regular wordpress profile fields from the front end the same way you edit the extended buddypress profiles that may be part and parcel with a feature i am currently lobbying for for 2.0 which is the merger of the two, both fronted and back.

    if that’s something you’d also like to see or is what you are trying to accomplish then i would urge you to enter this code patch as a ticket in trac:

    and while you’re at it please take the survey for any other input you have as far what you’d like to see for buddypress 2.0 i believe today’s meeting is where the new features will be scoped so the next few hours could be the last chance to give your input:

    2014 BuddyPress Survey

    also if you want to attend the devchat itself it’s held on irc at 20:00 UTC every wednesday on the channel #buddypress-dev

    if you do not have an irc client you can use the web browser version here:

    hope to see you there!

    CORRECTION: the feature scoping has been postponed until next week.



    Thanks guys!

    At first I was thinking about having each extended profile item on a new tab. However, now that I have looked at what you were saying about just being able to edit the profile items form the profile tab, I think that might be the best option. Since I was new, I was referring to the user’s page as the profile page instead of the “profile” tab.

    I have so many extended profile tabs that it looks better on the profile tab then adding tabs for each one.

    Thanks for the invite! I took the survey the other day, but I was unable to attend the online meeting. Sounds fun though… I am looking forward to coming sometime.



    Hi there, Tim. Could you explain what you finalyy did?

    I am havind same issue as you

    Thanks in advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to allow users to edit profile fields from their buddypress profile page’ is closed to new replies.
Skip to toolbar