August 11, 2009 Chris Ullyott
Post edited 9:12 pm – August 11, 2009 by Chris Ullyott
Does anybody know how to manually insert gavatars into a wordpress page, say if we were to create a staff list page with all the gravatars displayed?
August 11, 2009 Daniel Bachhuber
That's a really interesting question. I think you might first have to figure out where you're going to get the gravatars. For instance, do you want to show the gravatars of all the staff listed as authors and above, or contributors and above? Do you want to display them in chronological order?
August 12, 2009 Chris Ullyott
Maybe there doesn't have to be a system to it, maybe there's a way to just insert a code that displays one gravatar for a specific user.
August 13, 2009 Daniel Bachhuber
Ah, right. I think that's pretty simple. You'll have to
build the staff page from scratch, but when you're listing the author name you can use this:
<?php echo get_avatar( $id_or_email, $size = '96', $default = '<path_to_url>' ); ?>
I grabbed that from the
WordPress page on gravatars.
Does that make sense?