How to obtain author ID and get author profile outside the WordPress loop
WordPress allows you to create a custom Author web page for your WordPress blog and you can make this page look like anything you want. It is easy to display author’s profile inside the WordPress loop. However, it can be a challenge when you have multi-users blog and trying to dynamically display author profile for the current post on the single page using sidebar or widget.
This knowledge will show you how to get the author ID of the current post outside the loop and display the profile correctly.

milly 11:48 pm on November 25, 2009
First of all, you need to obtain the author’s profile data. Place the following code in your sidebar or widget.
After obtaining author’s profile data, you will be able to display the following information:
(Note: Be careful about what you are displaying.)
If you want to display author’s profile using widget, you need to declare the global variable $author in your widget’s function first, follow by the getting the author data above.