{"id":8011146,"date":"2015-09-24T12:48:15","date_gmt":"2015-09-24T12:48:15","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/exact-the-plugin-i-need\/"},"modified":"2016-09-03T03:13:35","modified_gmt":"2016-09-03T03:13:35","slug":"exact-the-plugin-i-need","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/exact-the-plugin-i-need\/","title":{"rendered":"Exact the plugin I need"},"content":{"rendered":"<p>Hi,<br \/>\nI like you comments widget. Here it is possible to display avatars.<br \/>\nBut if I have a comment from Facebook the Facebook Avatars are not shown.<\/p>\n<p>$output .= &#8216;&lt;ul id=&#8221;ns&#8221;&gt;&#8217;;<br \/>\n\t\tif ( $comments ) {<br \/>\n\t\t\tforeach ( (array) $comments as $comment) {<br \/>\n\t\t\t\t$output .= &#8216;&lt;div class=&#8221;avat&#8221;&gt;&#8217;;<br \/>\n\t\t\t\t$output .=  get_avatar(get_comment_author_email($comment-&gt;comment_ID), $size) . &#8216; &#8216;;<br \/>\n\t\t\t\t$output .=  sprintf(__(&#8216;%1$s on &lt;\/div&gt;&lt;li class=&#8221;ns-comment&#8221;&gt; %2$s&#8217;, &#8216;widget-recent-comments&#8217;), get_comment_author(), &#8216;<a>comment_ID) ) . &#8216;&#8221;&gt;&#8217; . get_the_title($comment-&gt;comment_post_ID) . &#8216;<\/a>&#8216;);<br \/>\n\t\t\t\t$output .=  &#8216;&lt;br style=&#8221;clear:both;height:0;margin:0;padding:0;&#8221; \/&gt;&#8217;;<br \/>\n\t\t\t}<br \/>\n \t\t}<\/p>\n<p>Is it possible to do that with an if else commando like this example?<\/p>\n<p> if ($comment-&gt;user_id) {echo get_avatar($td_comment_auth_email, 50);} else {echo get_avatar( $comment, 50 );}<\/p>\n<p>So if an User is registered on the Site he has it\u00b4s avatar, and the Users from outside the Site have their avatar for Example Facebook shown?<\/p>\n<p>Greets, Karl<\/p>\n","protected":false},"template":"","class_list":["post-8011146","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8011146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8011146\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8011146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}