Forum | Using Gravatars

You must be logged in to post Login

Using Gravatars

UserPost

5:12 pm
August 11, 2009


Chris Ullyott

Fullerton, CA

Member

posts 66

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? 
Thanks! 

Chris Ullyott | Daily Titan, CSU Fullerton | cullyott@dailytitan.com

6:32 pm
August 11, 2009


Daniel Bachhuber

Admin

posts 102

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?

4:23 pm
August 12, 2009


Chris Ullyott

Fullerton, CA

Member

posts 66

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.

Chris Ullyott | Daily Titan, CSU Fullerton | cullyott@dailytitan.com

2:26 am
August 13, 2009


Daniel Bachhuber

Admin

posts 102

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?


About the CoPress forum

Most Users Ever Online:

149


Currently Online:

2 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 107

Posts: 538

Membership:

There are 151 Members

There have been 2 Guests

There are 5 Admins

There is 1 Moderator

Top Posters:

Chris Ullyott – 66

Mo Jangda – 35

arobinsonwku – 32

laurenmichell – 21

CMLife – 16

sbressler – 15

Administrators: Daniel Bachhuber (102 Posts), William P. Davis (65 Posts), joey (39 Posts), Greg Linch (14 Posts), adam (1 Post)

Moderators: Andrew Spittle (49 Posts)