HI all,
I am trying to display user (ad displayname) welcome message on my web site but I am not sure how to achieve it. I found somthing online but that doesn't make any sence to me as I dont have nay value of $user_ID in the below code,
< ?php global $user_ID; if( $user_ID ) : ?>
< ?php if( current_user_can('level_0') ) : ?>
Welcome back < ?php global $current_user; get_currentuserinfo(); echo ($current_user->user_login); ?>. In case youve missed anything, heres what weve recently posted.
<ul>< ?php wp_get_archives('type=postbypost&limit=5'); ?></ul>
< ?php else : ?>
< ?php endif; ?>
< ?php endif; ?>
Problem is that I dont want to take any input from the user otherwise its pretty easy to do it. I am sure there would be some as there many websites that does it for you. We have an internal web site that does it. I just dont know how to..:)
It will be great if some one could help me out with it.
Regards,
SM.