Easy ReTweet WordPress Plugin

download
29,135 downloads

Easy ReTweet is a WordPress Plugin, which let’s you add retweet or Tweet this buttons for your WordPress posts, together with the retweet count.

Usage

There are three ways you can add the retweet button. Automatic way, manual way and using shortcodes

Automatic way

Install the Plugin and choose the type and position of the button from the Plugin’s settings page. You can also specifically enable/disable the button for each post or page from the write post/page screen.

Manual way

If you want more control over the way the button should be positioned, then you can manually call the button using the following code.

if (function_exists('easy_retweet_button')) echo easy_retweet_button();

Using shortcodes

You can also place the shortcode

anywhere in your post. This shortcode will be replaced by the button when the post is rendered.

Development

The development of the Plugin happens over at github. If you want to contribute to the Plugin, fork the project at github and send me a pull request.

If you are not familiar with either git or Github then refer to this guide to see how fork and send pull request.

If you are looking for ideas, then you can start with one of the following TODO items :)

TODO

The following are the features that I am thinking of adding to the Plugin, when I get some free time. If you have any feature request or want to increase the priority of a particular feature, then let me know.

  • Add Google Analytics tracking to shortcodes and template function
  • Add tracking of tweet button clicks

Support

  • If you have found a bug/issue or have a feature request, then post them in github issues
  • If you have a question about usage or need help to troubleshoot, then post in WordPress forums or leave a comment in Plugins’s home page
  • If you like the Plugin, then kindly leave a review/feedback at WordPress repo page.
  • If you find this Plugin useful or and wanted to say thank you, then there are ways to make me happy :) and I would really appreciate if you can do one of those.
  • Checkout other WordPress Plugins that I have written
  • If anything else, then contact me in twitter.

Download

You can download the Plugin as a zip file from the WordPress official Plugin directory.

Screenshots

  1. easy-retweet screenshot 1

    General Settings page

  2. easy-retweet screenshot 2

    Bit.ly Settings page

  3. easy-retweet screenshot 3

    Twitter button Settings page

  4. easy-retweet screenshot 4

    Enable/Disable button in the write post/page page

Installation

Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.

Changelog

v0.1 (2009-07-13)

  • Initial Release

v0.2 (2009-07-20)

  • Added option to add/remove button in archive pages.

v0.3 (2009-07-21)

  • Added support for translation.

v0.4 (2009-07-22)

  • Added option to add/remove button in home page.

v0.5 (2009-07-24)

  • Added option to edit the text that is displayed in the button.

v0.6 (2009-07-26)

  • Prevented the JavaScript file from getting included in admin pages.

v0.7 (2009-07-27)

  • Added an option to add text that can be added as Prefix to the Twitter message used for retweet.

v0.8 (2009-07-28)

  • Added support for shortcode to retweet button.

v0.9 (2009-07-31)

v1.0 (2009-08-02)

  • Added option to enter your own Bit.ly username and api key.
  • Added option to sepcify your own attributes like rel or target to the retweet link.

v1.1.0 (2009-08-05)

  • The shorturls generated using your API key, will be linked with your account.
  • Printing js using PHP, for better performance of JavaScript.

v1.2.0 (2009-08-18)

  • Removed hard coded Plugin path to make it work even if the wp-content path is changed.

v1.3.0 (2009-08-19)

  • Added the ability to enable/disable button on per page/post basics.

v1.4.0 (2009-10-15)

  • Added the ability to enable/disable button on per page/post basics, event if template function is used.

v1.5 (2010-01-02)

  • Ability to specify custom message for twitter instead of the post title.
  • Also added Belorussian Translations (Thanks FatCow).

v1.6 (2010-03-27)

  • Added Spanish Translations (Thanks Carlos Varela).

v2.0 (2010-11-29)

  • Added support for official Tweet button

v2.1 (2010-12-05)

  • Fixed issue with the support for official twitter button

v2.2 (2011-01-23)

  • Fixed issue with permalink for official twitter button

v2.3 (2011-01-23)

  • Added Brazilian Portuguese translation

v2.4 (2011-05-11)

  • Added German translations

v2.5 (2011-05-20)

  • Added support for twitter intents and bit.ly pro accounts

v2.6 (2011-05-21)

  • Reworded the domain text in the settings page.

v2.7 (2011-09-05)

  • Enabled custom Bit.ly Pro domains (By Michelle McGinnis) and added Bulgarian and Lithuanian translations

v2.8 (2011-11-13)

  • Added French translations

v2.9 (2012-03-13)

  • Added translation support for Romanian

v2.9.1 (2012-07-23) (Dev time: 0.5 hour)

  • Added translation support for Hindi

v2.9.2 (2012-11-07) (Dev time: 0.5 hour)

  • Added translation support for Irish

v3.0 (2013-06-03) – (Dev time: 1 hour)

  • Added support for Google Analytics tracking

v3.0.1 (2013-06-11) – (Dev time: 0.5 hour)

  • Added Danish translations

v3.0.2 (2014-06-19) – (Dev time: 0.5 hour)

  • Tweak: Removed old PHP4 compatible code
  • Tweak: Make it compatible with Easy Digital Downloads plugin. (Issue #5)

150 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:

      @Danny,

      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:

      @Danny,

      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:

      @Danny,

      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:

      @Danny,

      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

    Thanks!

    • Sudar says:

      @Danny,

      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! :)

    Danny.

  • 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.

    http://www.digitalweblogistics.com/blog/?p=69

    Many Thanks

    David

  • tinoro says:

    Hi
    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:

      @Tinoro,

      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:

      @Dougal,

      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:

          @Preppa,

          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:

      @Dougal,

      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:

      @Minic,

      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:

    Hello!
    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:

      @Zideo,

      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.

    Philip

  • 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:

      @Murat,

      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:

        @Murat,

        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 :)

          Cheers

          Murat

  • 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:

      @Gene,

      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:

      @Kevin,

      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:

    Hi!

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

    Tzahi

  • 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:

      @Matthew,

      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?

    Thanks,

    Christina
    WannaSmile.com

    • 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

    Jake

    • Sudar says:

      @Jake,

      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:

      @Jake,

      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:

        Sudar,
        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

        peace,
        Jake

        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:

          @Jake,

          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:

    Hi,

    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?

    Thanks,
    John

  • 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!

    Simon

  • 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?

    Thanks!

  • Dave H. says:

    Hello,
    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?

    Thanks,
    Dave

  • 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.

    Thanks,
    Prasenjit

    • 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:

    Hi,

    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?

    Thanks,

    Bill

  • 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'”;
    }

    // START OF MODIFICATION
    $permalink = get_permalink( $post->ID );
    $output = <<<EOD
    Tweet
    EOD;
    // END OF MODIFICATION

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

    Thanks once again,
    Andy
    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,
    -Kristine

  • 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:

      @Bill,

      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:

    Hello,
    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,
    Kent

  • 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?
    Thanks

  • 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! :D

    http://dev.bitly.com/deprecated.html

    • Sudar says:

      @John,

      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.

15 Tweetbacks so far

55 Trackbacks/Pingbacks so far

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>