Plugin Directory

Gravatar Shortcode

Allows you to use a shortcode in your Posts and Pages to embed a Gravatar quickly and easily just using an email address.

Download Version 1.1

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

Requires: 2.5 or higher
Compatible up to: 2.9.2
Last Updated: 2010-10-14 Downloads: 2,090

Average Rating

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

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

Log in to vote.

100,1,1
100,1,1