latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Capturing First Name After Logs In

Home Forums Community Forum Capturing First Name After Logs In

Tagged: 

This topic contains 4 replies, has 3 voices. Last updated by  Mike Waller 4 years, 4 months ago.

Topic Author Topic
Posted: Tuesday Aug 28th, 2012 at 9:36 am #23292
Mike Waller
Username: seozones

List Of Topic Replies

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Wednesday Aug 29th, 2012 at 7:56 am #23385

Hi Mike.

I don’t see your code. Could you post it again, making sure you wrap it with HTML code tags? Thanks!

Posted: Wednesday Aug 29th, 2012 at 10:12 am #23406
Mike Waller
Username: seozones

Oops, what I have is here but it’s not pulling back the first name:

<?php
if ( is_user_logged_in() ) {
echo 'Welcome! ' . $current_user->user_firstname . "";
}
?>

Thanks for your help with that.

Posted: Wednesday Aug 29th, 2012 at 10:27 am #23409

Its

<?php
if ( is_user_logged_in() ) {
	global $current_user;
	get_currentuserinfo();
echo 'Welcome! ' . $current_user->user_firstname . '';
}
?>
Posted: Wednesday Aug 29th, 2012 at 11:52 am #23421
Mike Waller
Username: seozones

Okay, that worked. thanks!

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

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.