@kinoseo
6 years, 7 months ago
Well.. i solved. if any body needs, this is a Shortcode for this, put in functions.php
// how to show avatar with shortcode --> [DASH_avatar] add_shortcode( 'DASH_avatar', 'DASH_avatar_func' ); function DASH_avatar_func() { $current_user = wp_get_current_user(); $html .= $current_user->user_login; $html .= get_avatar( $current_user->user_email, 32 ); return $html; }