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
| Parameter | Description | Default | Required |
|---|---|---|---|
| An alternate email address can be specified. | The logged in user's email address | No | |
| size | The desired height and width for the displayed avatar. | Set in Plugin Options | No |
| suppress_empty | Specifies whether to display a placebo avatar when the user hasn't registered an image at gravatar.com | no | No |
Example
Shortcode
[i4w_avatar]
Shortcode
[i4w_avatar size=96]
Shortcode
[i4w_avatar email='demo@example.com' size=96]
Shortcode
[i4w_avatar suppress_empty='yes']