I am new at WordPress. I have need to display current user info on page: avatar, name, lastname, login... I have spent several hour on web, but could not find clean solution: How is it possible to do this in WordPress?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
WordPress has wp_get_current_user() function for getting the current (logged in) user, which you could use. If the returned WP_User object doesn't have all the details you need, you can get either all or a specific user meta with get_user_meta(). For getting the user's avatar, you could use get_avatar().
Have a look at the function docs for more details and their User Contributed Notes for some usage examples.