Easy ReTweet WordPress Plugin

151 Comments so far

Follow up comments through RSS Feed | Post a comment

  • Aswin Anand says:

    Cool plugin! I shall use this ๐Ÿ™‚

  • baron says:

    Works great, thank you

  • raiderhost says:

    i want try use and install this plugin ๐Ÿ™‚

    i will feedback

  • Danny Brown says:

    Hey there Sudar,

    Nice plug-in and good to see all activity on a post via Twitter. Quick question – will you be offering the feature that Tweetmeme has where you can prefix your Twitter username at the start of the RT?

    At the minute it’s just the post title – would be cool to have RT@DannyBrown for example.

    Also, how about integration with the bit.ly API so you can tie your username to it? That way you can track more stats and analytics?

    Thanks again,

    Danny. ๐Ÿ™‚

    • Sudar says:


      Thanks for the suggestions. I am working on adding an option for specifying a prefix for the Twitter message. Expect it either today or tomorrow.

      Integration with bit.ly API might take some time.

    • Sudar says:


      Just checked in v0.7 which supports adding text in front of the generated Twitter message. Check it out and let me know how it works.

  • Danny Brown says:

    Hi Sudar,

    Just upgraded and tried it (put “RT @DannyBrown” as prefix), still the same message (no prefix showing up when it jumps to Twitter). Oh, is there a way to offer Open In New Window option as well?

    Thanks for quick response and upgrade, appreciate it! ๐Ÿ™‚

    • Sudar says:


      I am calling wp_head action to output the script. See whether your theme has a wp_head() call in the header.php file. Also what version of WordPress you are running?

  • Danny Brown says:

    PS – sorry for another question ๐Ÿ™‚

    Are there any issues with Firefox compatibility? I’m using FF 3.5.1 and for some reason it looks as if it just says “Retweet” in a horizontal box with no click-through stats showing. Seems OK in Google Chrome and IE8?

    Thanks! ๐Ÿ™‚

    • Sudar says:


      As far as I know there is no compatibility issue with Firefox. Can you give me your blog url so that I can find out what the issue is?

  • Danny Brown says:

    WordPress 2.8.2 with Thesis 1.5.1. There is a wp_head () call in the .php file. Not sure about Firefox – it only seems to do it occasionally? Bizarre. ๐Ÿ™‚

    URL is http://dannybrown.me


    • Sudar says:


      I Checked your site and it has wp_head() call. The script to change the text is printed properly, but the script to add prefix is not printed.

      Try to change the prefix to some other text and see if it works.

  • Danny Brown says:

    Hi Sudar,

    Thanks for checking out. Tried various prefixes, none seem to work? I’ll leave it without prefix for time being – thanks, though! ๐Ÿ™‚


  • David Cox says:

    Hi Sudar,
    Firstly thanks for your work on this Plug-in, I am new to WP, I have a site up and running, how can I add a carraige return to the ReTweet, it looks lile it needs a line break on my website bolg.


    Many Thanks


  • tinoro says:

    I’ ve exactly the same issue of Sudar.
    Changing the button’s text doesnยดt work, the same with a prefix text.
    WP 2.8.2
    Firefox 3.5.1

    Any help would be great

    • Sudar says:


      What is the OS of your server? Is it Windows or Unix?

      Also check whether wp_head() is present in the header.php file of your theme.

  • @Sudar: The problem with the custom message text and prefix is due to a little javascript syntax problem in your add_script_config() method. I added semi-colons to the ends of the two generated javascript variable declarations, and now it works fine.

    Like so:

    echo 'RetweetJS.link_text = "' . $options['text'] . '";';

    Notice the new semi-colon inside the final single-quote. Without it, the lines run together (because there is no newline between them in the script block), which is causing a syntax error.

    • Sudar says:


      Thanks for pointing it out. It was clearly an oversight from me. I am applying the code changes and will push an update now.

      • Preppa says:

        I just tried updating the message prefix and it doesn’t work. It keeps applying the first message prefix that I added.

        WordPress Version: 2.8.4
        Easy ReTweet Version: 1.2.0

        Old Message Prefix: Preppa Blogpost
        New Message Prefix that I want: “RT: @Preppa Blogpost”

        Any help or insight you can provide would be greatly appreciated. Awesome plug-in by the way! So easy to use, love it!

      • Preppa says:

        I just tried updating the message prefix and it doesn’t work. It keeps applying the first message prefix that I added.

        WordPress Version: 2.8.4
        Easy ReTweet Version: 1.2.0

        Old Message Prefix: Preppa Blogpost
        New Message Prefix that I want: “RT: @Preppa Blogpost”

        Any help or insight you can provide would be greatly appreciated. Awesome plug-in by the way! So easy to use, love it! Thanks!

        • Sudar says:


          I guess the issue is solved. I checked your website and the new message prefix is getting displayed. Let me know if you still face any issues.

  • Thanks Dougal Campbell, I was having the same issue, and your code fixed it!

  • BTW, I also added support for custom bit.ly user account to my local copy (RetweetJS.bitly_user and RetweetJS.bitly_key). Just because ๐Ÿ™‚

    • Sudar says:


      I have updated the Plugin to support bit.ly username and api key also. Check it out and let me know if you face any issues.

  • How do I add in the a href=”_blank” so it opens Twitter in a new window or tab?

  • Stan Lenssen says:

    Installed thie cool plugin. I recommend it highly above the tweetmeme button. Easy ReTweet does a far better job.

  • Mike Garrick says:

    A very nice retweet plugin, thanks, just one question is there any way to easily change the button colours my site is modelled on twitter and all blue, so the gren just looks a bit odd, but works very well glad to have bit.ly shortenin too. Thanks very much for your hard work. Mike.

    • Sudar says:

      Thanks Mike,

      You can change the color and style of the button using css. You can apply styles to a.retweet and a.retweet span classes

  • Mike Garrick says:

    noticed that my details are not clearing, please delete these as quickly as possible thanks.

  • @Sudar, I think @mike was talking about the comment form saving his information (via cookie). Don’t panic, Mike, all is well. It’s supposed to do that ๐Ÿ™‚

  • Minic says:

    Can I use my own image?

    • Sudar says:


      Actually I am not using any image. It’s all CSS. You can override the style by adding your own css to a.retweet and a.retweet span classes.

  • zideo says:

    Is it possible, with your plugin, to share a post to facebook using the bit-ly api key?

    I’m looking for a plugin that permit to visitors to post a bit.ly link to twitter AND/OR facebook

    Could you do that?
    Thanks a lot

    • Sudar says:


      Right now the Plugin doesn’t support posting to Friendfeed or Twitter. If you want I can add the ability to post to Twitter.

      I am not sure if posting to Facebook can be done.

  • I like the plugin, but the functionality is a little different than what I thought. I thought, like Tweetmeme, the number shown was the number of times the post had been retweeted on Twitter. But it’s actually just a hit counter in effect. The number is derived from the bit.ly stats that detail how many times the bit.ly link has been clicked, not from how many times it’s actually been tweeted on Twitter. That’s not a bad thing, just not what I expected.

    • Anonymous says:

      I have the same issue, I was wondering why the retweets were not being counted, I guess that’s why.

  • Hi Sudar,

    I like your Plugin and enjoy using it. But, earlier today, the count magically disappeared from my 9 most recent posts.

    All the other posts have the count showing and the Easy Retweet button is enabled on all of the posts.

    Can you please solve this mystery?

    Many thanks.


  • murat says:

    Hi there,

    I have hard coded the plugin into my theme (the normal way was messing it up for some reason) which means the disable easy retweet button does not work. Is there a short code that I can use in the html part of the post/page that disables the easy retweet button?

    • Sudar says:


      The current version doesn’t support it. I will release an update soon, which will disable the retweet button even if you are hard coding. Thanks for reporting it.

      • Sudar says:


        I have released an update to the Plugin (v1.4.0) which will enable/disable the retweet button per post even if the template function is hardcoded in the theme. Try it out and let me know if you are still facing this issue.

        • Murat says:

          Hi Sudar,

          Just tried it, works perfecly! Thanks for solving that.

          I’m looking forward to the update with the actual retweet counts, although the current version actually makes my site look far more popular than it is, which isn’t a bad thing ๐Ÿ™‚



  • Gene Quinn says:

    I agree with what Kevin says (Sept. 3, 2009). I really like this plugin a lot, but it is not exactly what I expected. I do not like the Tweetmeme plugin because you cannot set it to target=”_blank”. I do like the bit.ly counter functionality, but would like it even more if there were a number of tweets. I realize this might start to get a little busy, but having number of tweets, bit.ly counter and retweet would make a very sweet plugin.

    Thanks Sudar. I like what you have done already. Keep up the great work!

    • Sudar says:


      Thanks for the feedback. Showing the number of retweets is one of the top feature request for this Plugin. I am trying out various ways to see if it can be done. (probably by integrating with the Tweetback Plugin). Will release an update, if I figure out a way to do this.

  • Kevin says:

    This plugin would be awesome if it counted the number of times people retweeted the post instead of counting the click-throughs from Twitter. Not to knock your plugin but I don’t think anybody besides the webmaster actually cares about how many people came from Twitter. Most people like to see the number of times a post has been retweeted to see its popularity.

    • Sudar says:


      Thanks for the feedback. I am looking for ways to implement that. May be I can integrate it with Tweetbacks Plugin. Will release a new version soon with this feature.

  • I love this plugin because I can insert in manually and edit the color options, but is there anyway you can make the plugin work like tweetmeme so the number only show how many time the blog post has been retweeted?

    • Sudar says:

      This is one of the most requested feature of the Plugin and I am working on it. Will release a new version soon with this functionality.

  • I love this plugin because I can insert in manually and edit the color options, but is there anyway you can make the plugin work like tweetmeme so the number only shows how many time the blog post has been retweeted?

  • Widgia says:

    I upgrade wp to 2.8 and the plugin works fine, thank you:)

  • yudi says:

    This is the best and easiest retweet button plugin for Wp. I’m gonna use it. But how to place this button above or below the facebook share button? Thanks in advance.

  • Tzahi says:


    Your plugin is excellent. I like the many options it has. Installation was easy and smooth.
    However, it doesn’t seen on chrome Any idea why? works fine on IE8 and FF 3.5.5.


  • uttam says:

    I am getting timeout error while clicking on the retweet button.
    please suggest me the proper answer

  • Looks like a good plugin. However I’m having some issues.

    When I use the retweet it tweets only the http://www.bit.ly.com address and not a shortened url to the post? I have added the correct bit.ly account info.

    Also it doesn’t appear to display the retweet count.

    • Couldn’t for the life of me get this to work. Went with tweetmeme instead and worked first time.

    • Sudar says:


      Give me the url of your blog and I will have a look at it. Also is it happening in all browsers or only in specific browsers? Also check whether you are receiving any JavaScript errors in your pages.

  • WannaSmile says:

    Hi there,

    I’ve had this plugin on my site and enjoy using it, however for the past few days it has all but dissappeared and is not showing any retweet numbers. Any particular reason as to why?



    • Sudar says:

      See whether there are any JavaScript errors in your pages. This Plugin works by injecting JavaScript and might fail, if there is a JavaScript error on the page.

  • Jake says:

    Hi Sudar,
    Thank you for creating this plugin.
    Its very useful.

    Is there a way to handcraft the RT message rather than it choosing my prefix and adding the title?

    I’d like the tweets to be more compelling than just the title of the post.

    Thanks again, Sudar


    • Sudar says:


      Right now it is not possible to do it.

      But this seems to be a nice feature. I will add it when I find some time.

    • Sudar says:


      I have released v1.5 of the Plugin, which has the ability to handcraft the RT message. Try it out and let me know if you have any feedback.

      • Jake says:

        that is so great!

        That really adds value to this excellent plugin.
        Thank you for adding that functionality.

        I just used it, and it works flawlessly


        the only feedback I have is:
        place a preview of the exact retweet text (RT: @name [text] URL) complete with character count.
        That way, the user can stay in the WP screen for the whole process

        I had to do all of that manually on twitter to sort all of that out before completing the manual text.

        • Sudar says:


          Nice to know that it was working without any issues and thanks for the feedback. I am working on the next version of the Plugin and will try to include this feature.

  • John says:


    I am trying to use the manual insert in my posts. It doesn’t seem to work for me. All i get back is the code as text inserted into the blog.

    I am sure there must be a pilot error here. Can you help?

    Please note – I have a static home page and my post directed to another page. I have turned off the option for appearance on pages because i don’t want it on the static home page. I selected the manual option. However, I do need it on the posts redirected to another page.

    Can you help me?


  • Sudar, good work on this plugin. I used John Resig’s easy retweet before, but I like what you did with this better.

  • Yan says:

    Hi. I have a question about the plugin. I inserted the code manually and want to change the look. Whet the view of the plugin is set to horizontal, I use the .retweet class and it works. But when the vertical view is set, I can’t change the view. Please name the classes I need to use to do it. I just want to add a margin and float to the vertical view.

  • elizabeth says:

    ey!! this module have a wrong! because it’s counting clicks no retweets! i prefer to use tweetmeme

  • Gojeg says:

    Hmm..great plugins! Easy setup too, I’m interested.
    Thank you.

  • Hi – I love this; simple and easy to instal but also effective!

    I do have a question though: something I don’t quite understand… My current understanding is that the number besides (or above) the symbol is a count of the number of times the tweet has been re-tweeted. Is that right?

    If so, why would I not be able to find the re-tweets in twitter when I do a search? What am I missing? (I’m just nosy and want to find out who’s re-tweeting me! ๐Ÿ™‚ )

    Thanks for the plugin!


  • Martin Kayes says:

    Is there any chance this can be upgraded to work with WP3 beta?

    It does show the button and trigger a tweet but it isn’t showing the count next to the button. Thanks

  • Michelle says:

    I’m seeing a sporadic error on sites using the Easy Retweet plugin. Every once in a while the ‘tweeted’ number will show as really high, like 2270 for a relatively new post, and when you click through to ‘retweet’, the headline of the post will appear correctly, but the link will go to http://bit.ly/undefined.

    I haven’t been able to tie this issue to any specific browser/OS configuration, nor can I replicate it, but users are reporting it fairly frequently on http://blog.eloqua.com. Any ideas on what’s causing this?


  • Dave H. says:

    I am seeing the exact same thing as Michelle. “Every once in a while the โ€˜tweetedโ€™ number will show as really high” and when I click the link, it shows “undefined”. Refreshing the page will sometimes correct the number. I have seen this using IE 7, Firefox 3.6. Testing on Chrome returned the correct number. Other than this issue – works great.

    Any clues, ideas?


  • Ed Pullen says:

    I’m trying to use your Easy Retweet widget. I see it on other blogs and love how it works. I have obtained a Bit.ly API key and entered it, along with my Bit.ly name, selected to display on pages, before posts, horozontal position, but not added a prefix message or link attribute. Still it does not show up on my posts on the site. What’s wrong? Thanks.

    Ed Pullen

    • Sudar says:

      Check if there are any JavaScript errors in your page. JavaScript errors (even due to other problems) might interfere with the Plugin.

  • fatih says:

    Hi Sudar;

    I have a problem, an interesting one.

    I created a featured.php for my blog and this php file makes 3 lined up featured post to the home page. No problem with that.
    And of course, I have a index.php file (which includes featured.php on) that show other posts.

    And my problem is, when I place the retweet button manually to the featured.php file, the button on 3 featured posts tweet only the latest post. Which means, all retweet buttons on featured.php file are the same.

    How can I solve this problem?

    Thank you

  • Prasenjit Seth says:

    The plugin works perfect. Currently if there is no retweet yet, then the count box above the retweet button just disappears.

    How can I display retweet count as 0, when there is no retweet yet.

    Any help is appreciated.


    • Sudar says:

      Right now it is not possible to do it. You might have to change the JavaScript to do it.

      Let me see if I can do it as part of the next release of the Plugin.

  • ovidiu says:

    hi there.
    I prefer your plugin to the official twitter button as theirs adds body and iframe declarations into my content which messes up validation. yours looks a lot leaner.
    The only issue I have I can’t figure out how to get your button to not make a line break. I want it to stay in the same line as my share via FB buttons. Please see any post/page on my site for a live example.

    • Sudar says:

      There are two ways to do it.

      1) Your FB buttons are added inside a p tag. You can call the easy_retweet_button() function inside the same tag in your theme.

      2) Position the retweet button relative to the FB button using CSS. My Plugin adds a class called retweet, which you can style.

  • Paramantus says:

    It’s not working. When using the retweet it tweets only the titel of the post and the http://www.bit.ly.com address ๐Ÿ™

    • Sudar says:

      Is it happening always or once in a while.

      If it is happening always, then check whether you have any JavaScript error in your script.

      If it is happening only once in a while, then it means the bit.ly API is not responding properly.

  • varometro says:

    Is there a way to add the retweet button to the rss feed too?

    • Sudar says:

      Right now it is not possible to add retweet buttons to rss feed, because most feed readers will remove any JavaScript that we add.

  • Sam says:

    I would like to add a custom static graphic for the retweet button instead of using the dynamic javascript method that the plugin uses. How do I do this?

  • Ovidiu says:

    any chance you’ll integrate some other shortener services? I’d love to be able to integrate yourls by OZH…

  • Michel says:


    Is it mayby possible to change the ‘a href’ to an input field? So that the short URL is printed in a input field so users can copy this?

  • Steph says:

    Hi guys,
    This worked for me for several months and now the “count” at the top of the button is incorrect. It is always blank (without a #, even when I know it was retweeted) for new posts. Older posts still have the retweet number showing. Is anyone else having this issue?

  • Bill Hibbler says:

    Hi Sudar,

    I’ve been using your plugin since June. Most of the time it works great and I really appreciate your work on it.

    Since the last update, I’ve noticed some problems with it on my blog at http://www.BillHibbler.com. My blog is set to show the two most recent posts in full, earlier posts are show in a condensed form. The two full posts display your RT button.

    For some reason, the button displays 27 retweets for both posts on the home page. I tested it earlier by Retweeting a post. The number changed to 28 but later reverted back to 27. On the actual post page for today’s tweet, the number shows as 0 and for the post prior to that 3 RT. Neither number is accurate.

    Any idea how to fix this?



  • Andy says:

    Hello I get this error when I try and use the tweet me button on my site:

    URL required

    ‘url’ parameter does not contain a valid URL.

    Can you help me? please I have tried eveything to work it out.

  • Cathy says:

    Love the button, but it starts off showing 10 tweets on every post in my blog and then if someone tweets it, it shows 11 tweets on every post. How do I change it to start with 0, so when someone tweets for the first tie it shows 1 tweet and not on every post until someone tweets that post? Hope that makes sense! Thanks for your help!

  • Cathy says:

    Love the Tweet button, but it shows up with 10 tweets on each post in my blog before anyone has even tweeted (when I installed it on WordPress) and when someone tweets one post, it shows up 11 tweets on each post even though it’s only been tweeted once. Is there a way to change the button to show no tweets until someone actually tweets the post (i.e., once someone tweets that post, it will show 1 tweet and so on just on the post that’s been tweeted) and change it so it won’t show the same amount of tweets on every post? Hope that makes sense! Thanks for your help!!

  • Hi Sudar,

    Great plugin – thanks for sharing it.

    One feature that would be great would be the ability to switch between the plugin using the current URL to retweet vs. using the post’s permalink. This arose in a client’s site I’m working on, where the official twitter button was being included in the footer for every post. That means that when someone is viewing the blog homepage, they retweet the homepage, not the post. It then looks like the homepage has been retweeted hundreds of times, but the post-specific pages rarely are. Obviously, for SEO benefit, it would be great to have the post-specific pages retweeted as well.

    Here’s the code I used to hard-code the plugin to always use the permalink, lines 524 onwards

    } else {
    //Twitter button

    $t_count = $options[‘t-count’];
    $account1 = $options[‘account1’];
    $lang = $options[‘t-language’];
    $style = $options[‘t-style’];

    if ($lang != ” && $lang != ‘en’) {
    $lang = “data-lang=’$lang'”;

    $permalink = get_permalink( $post->ID );
    $output = <<<EOD

    Obviously, there is no admin facility to change this, but it would be great if you could add this option!

    Thanks once again,
    Hope that helps!

  • Kristine says:

    Hi there,

    I’m using this button and it was working fine for a while. Now it doesn’t show up in any of my posts. If I hover over the spot where it is supposed to show up, the little “alternate text” box displays, but the button isn’t visible. Any idea why this might be happening?

    Thanks so much,

  • Bill Hibbler says:

    Unfortunately, the plugin is too buggy. It will allow visitors to re-tweet posts but has numerous problems displaying the number of retweets. I’ve had it show the same number of re-tweets for every single blog post in the past. Now, it usually stays on zero despite numerous retweets using the button.

    • Sudar says:


      This Plugin is not storing the retweet count anywhere. It is just retrieving it using bit.ly’s API. If the API is returning wrong count, then the Plugin just displays it.

      • Bill Hibbler says:

        Unfortunately, Sudar, that’s not the case. Right now, I’ve got posts showing 0 retweets but when I click on the 0, the search shows multiple re-tweets. I’ve also had the plugin show different counts on the main page than the post page.

  • Michelle says:

    Is there a way to use a custom Bit.ly Pro URL with this plugin? I can see it’s tracking through to my bit.ly account, but my custom short url isn’t appearing. Thanks!

  • Lorenzo says:

    Hi Sudar,

    Your plugin has been great and I have been using it for over a year. However recently it stopped working like usual. It does not place any text when people click the retweet button and get taken to twitter. Normally they just had to click the retweet button and their twitter message area would be filled with an automatically generated tweet.

    It is not working for my sites mrgreen.am and fashioninfilms.com

    Any ideas why?

  • Kent Weakley says:

    I love this button, however it’s not working and I don’t know why. When I click it now in any of my posts, it opens a new page in Twitter, but does not add anything to the RT box. I can see that the info is in the URL >> http://twitter.com/#!/?status=RT%3A+%40KW_Daddio+Plastic+Photography+Protection+%28Video%29+http%3A%2F%2Fbit.ly%2FeYvcag << but there's nothing to send out via a tweet. HELP PLEASE.

    Thanks so much,

  • William says:

    Hello Sudar
    Thanks for letting us use this plugin. We exported all the post from one wordpress blog to another and want to know what’s the easiest way to also export-import the counts to the new blog?

  • Joe says:

    When I test the share a link on Twitter button (http://blog.epatcon.com/validating-mrs-x/) on our blog and the pop-up information box shows at the bottom of the box in the “New to Twitter” area it says, “Don’t miss any updates from ePatCon “NAME”. How can I get rid of the word NAME?

    • Sudar says:

      This is coming from the name field of the twitter account that you are using – https://twitter.com/ePatCon

      This is automatically pulled by twitter from your @epatcon twitter account and the Plugin can’t change this. I guess you might have to change the profile name in Twitter.

  • Great plugin, I am using it on my blog new and I have tweeted about it as well. I recommend others to do the same.

  • John says:

    Hi @Sudar! It looks like Bit.ly API V3 deprecated a few Endpoints. For example, /v3/clicks no longer works. This means that Easy ReTweet’s Bit.ly settings for displaying click counts when using “Button Style vertical button with counts” is not working as before–there are no counts anymore. ๐Ÿ™

    I thought you’d like to know. Thanks! ๐Ÿ˜€


    • Sudar says:


      Thanks for posting about this. It’s been ages since I used Bit.ly and didn’t know that their API has changed. I am even thinking of removing support for bit.ly completely.

      You can follow the progress here https://github.com/sudar/easy-retweet/issues/6

      • John says:

        @Sudar Oh sorry to hear that. The Bit.ly integration is the biggest reason I was using Easy ReTweet. With Bit.ly integration it was possible to display the count representing the reach and popularity of shared content. Hopefully you’ll reconsider. Thanks Sudar!

        • Sudar says:

          Ohh I didn’t know that you were using it. I assumed that no one is using Bit.ly these days ๐Ÿ™‚

          Anyways since you are using it I will not remove the functionality.

  • bilgi says:

    I am use now. Working good. thanks for share.

15 Tweetbacks so far

55 Trackbacks/Pingbacks so far

Leave a Reply

Your email address will not be published. Required fields are marked *