How to display author meta in a sidebar widget

I figured it out, completely accidentally. I had already tried the solutions posted but they did not work for me, most likely due to the theme I am using (TravelTour).

For me, to get the user meta to display I had to call wp_reset_query before it. I have no idea why.

Example:

wp_reset_query();
// then
echo get_the_author_meta('user_email');

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)