Plugin Directory

Gravatar Shortcode

Options

In addition to email="", you can also include the following attributes within the shortcode for extra formatting etc:

See http://dentedreality.com.au/projects/wp-plugin-gravatar-shortcode/ for more examples.

  • email: the email address to display the Gravatar for
  • size: a number (e.g. 60) representing the pixel size of the Gravatar to display (they are square)
  • rating: a letter restricting the maxiumum rating of Gravatar to display (g, pg, r, x)
  • default: the default image to use if there isn’t one associated with this email address (otherwise it will use the Gravatar.com default)
  • alt: the “alt” attribute to apply to the img tag produced
  • title: title attribute for the img tag
  • align: align attribute for the img, should be left, right, absmiddle, baseline etc
  • style: custom style attribute (e.g. ‘margin: 5px; border: solid 1px #000;’)
  • class: add a class to the img tag
  • id: add an id to the img tag for specific styling/DOM manipulation.
  • border: adjust the border attribute for the img

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(1 ratings)