{"id":689,"date":"2008-09-11T02:06:17","date_gmt":"2008-09-11T06:06:17","guid":{"rendered":"http:\/\/www.ezrasf.com\/wplog\/?p=689"},"modified":"2008-09-11T02:13:30","modified_gmt":"2008-09-11T06:13:30","slug":"gravatars-in-blue-zinfindel-theme","status":"publish","type":"post","link":"https:\/\/www.ezrasf.com\/wplog\/2008\/09\/11\/gravatars-in-blue-zinfindel-theme\/","title":{"rendered":"Gravatars in Blue Zinfindel Theme"},"content":{"rendered":"<p>For a while I have meant to do this. Here I am with insomnia, so here goes&#8230; I have implemented Gravatars for the this Blue Zinfindel theme.<\/p>\n<p>Here is coding I used to implement it to this theme&#8217;s comments.php (WP Design &gt; Theme Editor &gt; Comments). Normal text is for context. Bold is what I added.<\/p>\n<blockquote><p>&lt;li class=&#8221;&lt;?php echo $oddcomment; ?&gt;&#8221; id=&#8221;comment-&lt;?php comment_ID() ?&gt;&#8221;&gt;<br \/>\n<strong>&lt;?php echo get_avatar(get_comment_author_email(), &#8217;32&#8217;); ?&gt;<\/strong><br \/>\n&lt;?php comment_author_link() ?&gt;<\/p><\/blockquote>\n<p>The first place I saw to provide a function rather than a variable is the <a href=\"http:\/\/weblogtoolscollection.com\/archives\/2008\/03\/03\/gravatars-and-wordpress-25\/\">weblog tools collection post on gravatars<\/a>. The above is their recommendation with size 32 image. I picked this size because it is the size of the icon inside the WP admin (tested 64, 48, and 30 with 30 seeming about right).<\/p>\n<p>Once I decided to do it, it took me about an hour to find an example using <code>get_comment_author_email()<\/code> instead of <code>$comments<\/code> or <code>$id_or_email<\/code>. It&#8217;s easy to implement.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a while I have meant to do this. Here I am with insomnia, so here goes&#8230; I have implemented Gravatars for the this Blue Zinfindel theme. Here is coding I used to implement it to this theme&#8217;s comments.php (WP Design &gt; Theme Editor &gt; Comments). Normal text is for context. Bold is what I [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[165],"tags":[284,3053,391,167,73,285,390,456,166],"class_list":["post-689","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-avatars","tag-wordpress","tag-comments","tag-design","tag-email","tag-gravatar","tag-icon","tag-php","tag-theme"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1rUBW-b7","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts\/689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/comments?post=689"}],"version-history":[{"count":0,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts\/689\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/media?parent=689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/categories?post=689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/tags?post=689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}