WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to show user registration date like

Member since: 15,dec 2012.

I have a code

<?php echo date("M Y", strtotime(get_userdata(get_current_user_id( ))->user_registered)); ?>

but it show same date in all users profiles. Can some one please tell me how I fix that.

share|improve this question
Please add the complete code how you get the user data. – Ralf912 Jan 1 '13 at 12:30
For me this worked: ideiplus.com/show-user-registration-date-in-wordpress-website I have wp 4.4 and a mythemeshop theme. – user86057 Dec 30 '15 at 13:07

get_current_user_id() give you the user id of the logged in user. And that is: you.

You have to get all users:

        $users = get_users();

        foreach( $users as $user ) {

            $udata = get_userdata( $user->ID );

            $registered = $udata->user_registered;

            printf( '%s member since %s<br>', $udata->data->display_name, date( "M Y", strtotime( $registered ) ) );
share|improve this answer
but they show all user registration date, i want to show every member profile page with his joining date. please provide me. – Maan Jan 1 '13 at 13:06
gist.github.com/4427538 – Ralf912 Jan 1 '13 at 13:36
@Ralf912 Where exactly do we get to place your code? Thanks. – marikamitsos Jan 1 '13 at 15:35
functions.php or plugin. wherelse? because it is not theme specific, a plugin would be the best place. – Ralf912 Jan 1 '13 at 16:13
@marikamitsos Why don't you just try it???? – Ralf912 Jan 4 '13 at 15:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.