Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)
  • @kinoseo

    Participant

    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;
    }
Viewing 1 replies (of 1 total)
Skip to toolbar