Viewing 3 replies - 1 through 3 (of 3 total)
  • $avatar_size is not available for user profile pages, as normally in profile pages the user picture or thumbnail is shown. (There are temnplates showing the user picture, the user thumbnail or the user gallery.

    Also, the $user var in profiles is not an array, it is an object. So, you cannot use it as array, have to use as object.

    In the provided templates header, you have a list of what variables are available.

    That said, you can call the get_avatar() function passing a hardcoded avatar size, like get_avatar($user->ID, 80);

    Thread Starter raibom

    (@raibom)

    I got using the following function:
    <?php echo get_avatar($user->user_email, ‘140’);?>

    thx!!

    Nice to see you could find a way to show exactly what you wanted on the page.

    I will try to write some more template tutorials as soon as I find some time to do it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Alkivia Open Community] Show avatar in profile page template’ is closed to new replies.