Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is there a way to show the user’s join date on their profile page?

  • @bethdeth

    Member

    I am installing Buddypress and would like to have the user’s join date show up on their profile page, preferably next to their avatar, name, and last active info. Ideally, I would like to be able to group users by their join date (so those who join in the first 6 months are labeled “founding members” or something like that). Anyone know how to accomplish these items? I know that the join date appears on the forum posts but I’d also like to have it on the profile page. I won’t have forums and activity stream turned on at launch.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @senseijack

    Participant

    This should work:

    `<?php
    global $bp;
    $currentuser = get_userdata( $bp->displayed_user->id );
    $joined= date(“F jS, Y”, strtotime($currentuser ->user_registered));
    echo ‘‘ . $joined . ‘‘;
    ?>`

    Just replace the span tag with whatever html you need. You could also enclose this in a function added to your functions.php file and call it from there.

    @katyp

    Member

    @Jack

    Thank you so much for this! I hope this isn’t a dumb question, but to which file do I add this code? I’m brand new to BuddyPress.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is there a way to show the user’s join date on their profile page?’ is closed to new replies.
Skip to toolbar