Posts tagged: php

WordPress comment gravatars

Now that gravatar are part of the Automattic family… WordPress 2.5 has the get_avatar() function

echo get_avatar( $email); //sends an md5 hash of the email, returns the user avatar or if nothing found returns the gravatar.com default image
Read more »

WordPress is_front_page() function

New for version 2.5, this function should clear up confusion when using a static page as front page - 2.3 and lower had trouble here when using is_home()

is_front_page() returns true when the main blog page is being displayed and the Settings > Reading > Front page is set to “Your latest posts”,

Read more »