I'm having a really weird issue with a theme I bought (and apparently the theme authors have disappeared off the face of the earth and aren't providing support). It's Questions & Answers here: http://www.themeflicks.com/questions-answers/.
The problem is that the Gravatar won't show on a profile page (e.g., here: http://www.glutenfreeonashoestring.com/community/profile/mandyintulsa/). But it WILL show on posts and comments and such (e.g., here: http://www.glutenfreeonashoestring.com/community/avatar/). I was thinking there was a discrepancy in the same code on both those pages, but they appear to be the same?
Here's what shows on single posts (shows properly - just copying the whole section):
<?php
$author = $authordata;
$blog_url = get_bloginfo('template_url');
$select_user_selectedimg = get_user_default_icon($author->ID);
$user_selectedimg = '/images/avatar.jpg';
$url = $blog_url . $user_selectedimg ;
?>
<a href="<?php echo $author_profile_link ?>"><?php echo get_avatar($author->user_email, $size = '50', $url); ?></a> <div class="authormiddle">
<span>By: <?php the_author_posts_link(); ?></span>
<span class="points5"><?php echo GetLevelP($authordata->ID); ?></span>
</div>
</div>
And here's what's on the profile page, I think (found in the archives.php file in the theme):
<h2 class="pagetitle"><?php echo $current_user->nickname ?>'s Profile</h2>
<div class="left">
<?php
// Display avatar
$author = $authordata;
$blog_url = get_bloginfo('template_url');
$select_user_selectedimg = get_user_default_icon($author->ID);
$user_selectedimg = '/images/avatar.jpg';
$url = $blog_url . $user_selectedimg ;
?>
<?php echo get_avatar($author->user_email, $size = '50', $url); ?> </div>
Any thoughts would be most helpful! :)