Page 1 of 1

Display User Info On Webpage

PostPosted: November 8th, 2011, 12:32 pm
by fcp2011
Hi all. I am trying to find a way to display the logged in user's first name in the body of a webpage. For instance, when they login and are redirected to the login home page, I want the title of the page to say "Welcome [User's First Name]".

any help.

Thanks in advance

Re: Display User Info On Webpage

PostPosted: November 8th, 2011, 12:43 pm
by Eduan
Use this shortcode:
[s2Get constant="S2MEMBER_CURRENT_USER_FIRST_NAME" /]

Found this under WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants.

Hope this helps. :)

Re: Display User Info On Webpage

PostPosted: November 8th, 2011, 1:17 pm
by fcp2011
Yup. Thanks a lot. I knew it was here. You saved me a lot of time.

Thanks again.

Re: Display User Info On Webpage

PostPosted: November 8th, 2011, 1:32 pm
by Eduan
Yeah sure, :)
anything else you need just ask. ;)