Display Twitter profile picture on wordpress comments

Lead Gen Banner

Well this title is not new to some of wordpress blogger. Since I started blogging (to be honest very new), hovering those entire beautiful blog site existed, I always wondered how they can manage Twiiter avater in their comment area. Did they built their own plug-in or there might be a web service by twitter? While searching on goggle I got some blog post on SmashingMagazine and in WpBeginner, both described step by step approach towards your twitter based avatar for wordpress. Plugin named “Twittar” by SmashingMagazine and Ricardo Sousa. You can have a look at that post here.


But I found one in WordPress Plugin website name “Twitter Avatar” developed by BusinessXpand.com and author Thomas McGregor. It allows user to post there twitter username while they submit their comments. Below I will give some features and show how you can install this plugin to your wordpress theme.

What this “Twitter Avatar” do?


That picture tells everything, isn’t it?? Yes, you can have an additional text field for your commenter to submit their twitter username. Moreover it will show links to their twitter profile next to comment. Needless to say default avatar will be replaced by that twit commenter as well.
I personally liked it because it is customizable. You can give additional Css styling yourself which will fit with your designed template.

How to install?

Only problem I found with this problem is “You have open comment.php and insert some code” apart from that this plugin is fine. Well here we start…

  1. Download the plugin to your wordpress plugin folder ex: www.myblog.comwp-contentplugins
  2. Go to your dashboard click plugins
  3. Activate the plugin
  4. Go to edit themes and click on “comment.php
  5. There you will find
    <?php wp_list_comments(); ?>
  6. Replace that with this code:
    <?php ( function_exists('twitter_comment') ?
    'twitter_comment' : null ), 'avatar_size' => 96 ) ); ?>
  7. Again in the same file find this block :
    <?php else : ?>
    <p><input type="text" name="author" id="author" value="<?php
    echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req)
    echo "aria-required='true'"; ?> />
    <label for="author"><small>Name <?php if ($req)
     echo "(required)"; ?></small></label></p>
    <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req)
    echo "aria-required='true'"; ?> />
    <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
    <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
    <label for="url"><small>Website</small></label></p>
    <?php endif; ?>
  8. Just Bellow this code insert the following code:
    <p><input type="text" name="author_twitter" id="author_twitter" value="<?php echo (isset($_COOKIE['author_twitter' . COOKIEHASH]) ? $_COOKIE['author_twitter' . COOKIEHASH] : '' );?>" size="15" tabindex="4" />
    <label for="url"><small>Twitter Username</small></label></p>

Important : Don’t give your avatar size more than 90 pixel because this plugin can only work under 90 pixel image size avatar.

Well that’s it. You may find out a Twitter Avatar option in your dashboard, you can give some value there but I will recommend give the avatar size in your css style file.

No related posts.

  • Pingback: IM Website Developer

  • Pingback: Shajed Evan

  • Pingback: Shajed Evan

  • Pingback: yamasas

  • http://www.smedevelopers.com Evan Shajed

    Hey I am using the plugin posted above here …. try and leave your comments….

  • Pingback: Display Twitter profile picture on wordpress comments | WordPress News

  • Pingback: IM Website Developer

  • http://www.thereviewsite.info Attili Sattibabu

    Good post mate!! Keep 'em flowing!

  • http://www.pinthe.info Pintheinfo

    hey hmmm just passed by consedince while for some articles for my freakin college :) okay anyway nice blog Will check it out Later on ,hope you accept me as a follower. oh yeah will try to visit again :P thanks ^^

    • http://www.smedevelopers.com Evan Shajed

      Hey thanks for following … It is inded a very new blog…. I will try to post often very soon…

  • http://googleblogsite.info/ Athanias Salam

    Thank You for sharing your knowledge, Really nice post

  • http://howtopickoutdivingwatches.wetpaint.com/ Marcus

    I usually do not leave comments, but I thought this was a great post! WoW:)

  • http://www.blinkvid.com Pearlie Jackosn

    Awesome entry I just Love it, Keep adding more Watch Old Movies like this!

  • http://freemusicdepot.com/music/starving-artists-crew-%E2%80%93-up-pops-the-sac-2004/ Eleonore Billig

    Brilliant post here!! Poor coconut oil… Its only fault is coconuts cultivate only in the tropics. If only the coconut palm tree (Cocos nucifera Linn) grew all around us, coconut oil would have been unquestionably praised as the most splendid, most significant, best, etc. nutritional oil or fat on the entire globe. Cheers. Learn more on coconut at well-informed-sources dot com.

  • Pingback: Shajed Evan

  • http://furrytower.com Kenny Nasir

    Hi, I am browsing the Internet for Valentine day ideas and came across your site. good work.

  • http://sleepiec382.blogetery.com Shante Mannon

    Exactly, what i was looking for. thx

  • http://www.tweetadderdiscounts.com/ tweet adder coupon c

    Discovering how to get more followers on twitter is relatively simple. By having updated content every day, you have the ability to attract loyal followers.

  • http://www.zahngold-verkaufen.info gold

    Sehr interessant. Kommt hier noch ein weiterer Beitrag? Würde gern einiges mehr darüber wissen. Kannst du mir per Mail antworten?

  • http://www.campori.de Photostudio Köp

    Hey! I have been following your blog for 4 days now and i should say i am starting to like your articles.I guess im subscribing now for not missing anything new.

  • Draco


  • http://www.thaidy.com Allen Savarino

    You know, I have to tell you, I truly savor this webpage and the great insight. I find it to be refreshing and quite informative. I wish there were more blogs like it. Anyway, I felt it was about time I posted a comment on Display Twitter profile picture on wordpress comments | I AM WEBSITE DEVELOPER – I just wanna say that you did a nice job on this. Cheers dude!

  • http://www.kumudhamwebtech.com Email Database

    I will try it..

  • http://www.tweetadderblog.com/ tweet adder discount

    An important part of generating Followers is keeping them. Getting Followers is important, however keeping the followers still is even more crucial.

  • http://www.money-news-ticker.info Jeffrey Williams

    thank you for your post. Thats what im looking for.

  • http://learndrums.info LearnDrumsInfo

    hi-ya, great post.

  • Pingback: Shajed Evan

  • Pingback: News Buzz

  • Pingback: Shajed Evan

  • http://www.lawnsigns.org parking signs

    Nice information that you share on this article. I like to thank you for posting this great article. Good information.

  • http://www.aboutmyfitness.com yoga poses

    Great article! I was looking for something entirely different when I came across your blog. I really enjoyed the thought you put into this writting. i will bookmark to return later.

  • http://seoeksperten.com soegemaskineoptimeri

    Hey, I think your blog is very interesting. I found it via Google. Will bookmark and come back soon

  • http://www.facebook.com/profile.php?id=1241324296 Mitchell Okerblom

    thank you for this blog.

  • Pingback: Post Twitter Feed Website | Top Social Media Optimization

  • http://www.clippingpathindia.com Clipping Paths

    Thanks for this helpful tips to show twitter pic.

  • http://www.clippingpathspecialist.com/services/photograph-retouching-service.html Photo Retouching

    Helpful Posting.