Skip to main content

i4w_avatar

Usage

This shortcode will automatically retrieve a registered gravatar from www.gravatar.com and display it.

If a user is not logged in or hasn't registered her/his gravatar, the default avatar specified in your WordPress settings is displayed instead.

[ELSE_avatar] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
emailAn alternate email address can be specified.The logged in user's email addressNo
sizeThe desired height and width for the displayed avatar.Set in Plugin OptionsNo
suppress_emptySpecifies whether to display a placebo avatar when the user hasn't registered an image at gravatar.comnoNo

Example

Shortcode
[i4w_avatar]
Shortcode
[i4w_avatar size=96]
Shortcode
[i4w_avatar email='demo@example.com' size=96]
Shortcode
[i4w_avatar suppress_empty='yes']