Tweet This, a WordPress Plugin for Twitter [1.8.3]

Disclaimer added 2014-10-03: I have not updated Tweet This since 2011-07-05 and lost interest in maintaining it. It has outstanding bugs and probably doesn’t even work work properly anymore due to changes to the Twitter API.

Download Tweet This 1.8.3 [0.8MB .zip]

Popular Twitter plugin inserts “Tweet This” links so your readers can share posts with one click. Can automatically tweet new posts via OAuth. Allows you to publish and schedule tweets from a new “Write Tweet” page. Supports 10 URL shorteners including,, and TinyURL. Includes options for 20 social networks including Facebook, Bebo, and MySpace. Includes the Wickett Twitter Widget for your sidebar and many other options.

1.8.3: 2011-07-05: Small update to fix compatibility with WordPress 3.2.

Upgrading from 1.8.2 to 1.8.3

1. Upload the new /tweet-this/ folder over the old folder in your plugins folder.
2. Tweet This 1.8.3 is installed.

General Information

Tweeting a post on Twitter takes up a lot of space, because URLs quickly eat up your 140 characters. While your readers might copy the permalink, go to or TinyURL, shorten and copy the new URL, go to Twitter, and paste it into the status box, this plugin merges all that into one step.

This plugin makes short URLs like http:/, then displays a link to Twitter for each post, with an optional icon (20 choices). This is done automatically for each post as needed. You can choose a URL shortener including,,,,,,,, and Each shortened URL is cached as a custom field in the postmeta table to keep load times fast. The cached records are updated or deleted as needed when you edit a post’s permalink, delete a post, change your site’s permalink structure, or change URL services. In WP 3.0 or later, Tweet This hooks the short URLs into the get_shortlink filter.

This plugin can also tweet new blog posts automatically, if you provide your Twitter credentials in the options. Then a “Send to Twitter” checkbox appears when writing a new post, along with a text box so you can change the tweet text for that specific blog post. As of 1.7, OAuth is used.

Unlike Tweetmeme, ShareThis, and other Twitter plugins, Tweet This inserts links without JavaScript, iFrames, or third-party dependencies. An example:

Copyright 2008 – 2011 Richard X. Thripp (email:
Released under Version 2 of the GNU General Public License as published by
the Free Software Foundation, or, at your option, any later version.

Tweet This Version History

Tweet This Blogs

Tweet This Icons

Tweet This Wiki on

Tweet This on

Tweet This Installation

Before you begin, please make sure your server has PHP 5 and Curl enabled. While you can use Tweet This on PHP 4, all OAuth functions require PHP 5. Tweet This requires WordPress 1.5 minimum, with the following exceptions:

1. Importing exported options requires WP 2.0.
2. Automatic tweeting requires WP 2.7.
3. The Twitter Updates widget requires WP 2.8.
4. Adding short URLs to the get_shortlink filter requires WP 3.0.
5. Moving the Tweet This box around the Write Post page requires WP 3.0.

If you are installing Tweet This for the first time, follow these steps:

1. Upload the `tweet-this` folder to `/wp-content/plugins/`.
2. If you’re using WordPress MU and want this plugin active for all blogs, move `tweet-this.php` to `/wp-content/mu-plugins/` at this point.
3. Else, activate the plugin through the ‘Plugins’ menu in WordPress.
4. Tweet This icons should automatically appear on every post and page! Go to Settings > Tweet This to change settings and set up auto-tweets.
5. Optionally, delete readme.txt and the screenshots folder to save space.

Tweet This Donations

If you like Tweet This, consider donating $5.00, $10.00, or a larger amount via PayPal. As of Feb. 22, 2010, I have received $94 in donations since the initial release of Tweet This in Sept. 2008.

2011-02-22: $25.00 from Canopus Research Inc.
2011-02-17: $10.00 from Berend de Meyer.
2011-01-20: $5.00 from Nigel Boulton.
2010-10-27: $2.00 from JJ Soule.
2010-10-24: $10.00 from Linda C.
2010-10-20: $10.00 from Gareth Davies
2010-10-08: $1.00 from Tache Madalin
2010-10-01: $5.00 from Marcos Ramos
2010-09-20: $10.00 from Linda Worthington
2010-09-18: $1.00 from James Magary
2010-09-15: $10.00 from Miter Saw Reviews
2010-09-15: $5.00 from Kinoshita Communications LLC

Tweet This Screenshots

Screenshot 1

1. Tweet This options page: all sections closed.

Screenshot 2

2. Tweet This options page: all sections opened.

Screenshot 3

3. The Write Tweet page, having just published a tweet.

Screenshot 4

4. A post with Tweet This links; Twitter Web API and Share API.

Screenshot 5

5. Publishing a tweet alongside a new post.

Screenshot 6

6. The Twitter Updates widget included with Tweet This.

Frequently Asked Questions

Acknowledgements and To-Do List

Download Tweet This 1.8.3 [0.8MB .zip]

Testking offers fail proof 640-802 exam preparation with help of 640-863 notes, 640-816 study guide, 642-072 dumps and 642-145 practice test.

972 thoughts on “Tweet This, a WordPress Plugin for Twitter [1.8.3]

  1. Where do I get the info to fill in the Automatic Tweeting section.

    The Step 1 info is all filled in but I don’t know what to do starting with step 2: Enter the CAPTCHA, click Register and agree to the terms.

    And then step 3 wants Consumer key and Consumer secret and I don’t know where those come from either. Can’t do step 4 either.

    Can someone point me to where I get this info? thanks.

  2. Error tweet this 1.8.2 + WordPress 3.2 :frown: ..


    Warning: require_once(/home1/entreti1/public_html/ [function.require-once]: failed to open stream: No such file or directory in /home1/entreti1/public_html/ on line 145


  3. Problems with Tweet This and the new WordPress 3.2 ??

    Open the file

    Find the following lines (in my file line 142-145):

    if(!class_exists(‘Services_JSON’)) {
    if(version_compare($GLOBALS[‘wp_version’], ‘2.9’, ‘<‘))
    else require_once(TT_WP_JSON);}

    Insert // in front of the four lines, like this:

    // if(!class_exists(‘Services_JSON’)) {
    // if(version_compare($GLOBALS[‘wp_version’], ‘2.9’, ‘<‘))
    // require_once(TT_JSON);
    // else require_once(TT_WP_JSON);}

    That did the trick for me!

  4. Love the plugin good work but as most people that have upgraded the site crashed and i had to rename the tweet-this plugin directory to get the site back up as in the new version of wordpress there does not seem to be a:


    file anymore.

    Please let us know when this great plugin will be updated to work with the new wordpress system if at all so i can plan ahead with my sites. I love the plugin in and will hold back with the update of wordpress for a while if there will be new development if not let us know please, Thanks for all your great work!

  5. Hi

    Slight issue – have just upgraded site to WP 3.2 (or similar) and now all I get is this error message:

    Warning: require_once(/www/sites/1d5/a63/ [function.require-once]: failed to open stream: No such file or directory in /www/sites/1d5/a63/ on line 145

    Fatal error: require_once() [function.require]: Failed opening required ‘/www/sites/1d5/a63/’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /www/sites/1d5/a63/ on line 145

    Any help gratefully recieved.

  6. Hello.
    version 1.8.2 is not working with WordPress 3.2

    Warning: require_once(/home/…./wp-includes/class-json.php) [function.require-once]: failed to open stream: No such file or directory in /home/…/wp-content/plugins/tweet-this/tweet-this.php on line 145

  7. After using my blog to add a new post and schedule everything, I upgraded my blog to wordpress 3.2 today. Now it’s not working. The error it posts is related to tweet this… class-json.php) [function.require-once]: failed to open stream: No such file or directory in wp-content/plugins/tweet-this/tweet-this.php on line 145

    Fatal error: require_once() [function.require]: Failed opening required … /wp-includes/class-json.php’ (include_path=’.:/usr/lib64/php:/usr/lib/php’) in … wp-content/plugins/tweet-this/tweet-this.php on line 145

  8. Pingback: Как я заставил Twitter принести мне 35,967 посетителей за 14 дней | Как раскрутить сайт и заработать миллион в Интернете

  9. Pingback: Le Top des meilleurs outils et plugins Twitter pour Wordpress (partie I) - M@Doutsourcing | webdesign référencement naturel SEO Graphisme- M@Doutsourcing | webdesign référencement naturel SEO Graphisme

  10. Pingback: Top Twitter WordPress Plugins |

  11. Pingback: Anthony Weiner Doll in the Making « TheHighLyphe

  12. Hi,

    just installed this plugin and there is an issue with using tweet this on posts. the web link for the tweet seems to get auto changed from… etc to!/?status …

    the home part seems to get changed to #! and then the link doesnt put the text into the tweet box for you. is there a fix for that?

  13. Hi,

    Nice plugin but currently the sharing is not working properly. I think Twitter changed the url structure. Please update your plugin.

  14. Hi there.

    I’ve received reports from readers of my blog that the Tweet This links do not work if the reader is viewing the blog on a Mac (specifically Safari on a Mac — it works fine in Safari on PCs). Any chance you have a fix for this?


  15. Pingback: Cerita Untuk Sahabat | Belajar SEO » Blog Archive » Daftar 40 Plugin WordPress ( Essential Plugin)

  16. Pingback: How I Broke Free Of Picture Sharing Services | TechyDad

  17. As of MAY 2011, the “Tweet This” plugin is broken. Do not bother downloading or installing. The plugin is not compatible with Twitter’s new URL syntax and will NOT compose tweets. Someone suggested removing “home/” from the plugin’s code, which I tried unsuccessfully. I have tried three times to contact Richard Thripp, the plugin’s author, including a $50 upfront cash offer, but he does not seem interested in updating this plugin anymore.


    • Same issue. Plugin is broken. Worked well until last week. Too bad as it was a good plug-in.

    • I developed a workaround.

      You have to go to the Plugin Editor in WordPress.
      Edit the main Tweet This php file tweet-this/tweet-this.php

      Find all occurrences of this exact phrase: home/?status=
      and replace with: intent/tweet?text=

      There are 3 occurrences I think.

      This doesn’t exactly reproduce the original Tweet This experience, but at least it gives readers the ability to easily share a link on Twitter.

      • Excellent, this works amazingly well. Thanks Jeffry, I’ve already posted this on my blog, with credit given to you of course.

    • It never stopped working for me — use it almost daily. The only problem I’ve come across is that it won’t work for readers using Macs.

  18. Hi Richard

    Will you be able to change the coding to take account of Twitter needing a new URL string for ready-made posts?

    Best wishes and thanks


  19. Pingback: 20 Must have wordpress plugins | Sameer Manas

  20. I love your plugin, so I thought I’d drop you a line to say that the new changes to the Twitter API have stopped it from working completely in the option that passes the tweet and params to the Twitter “what’s happening” window.

    It simple opens twitter in a browser, but does not show anything in the window. It changed a few days ago.

    Thanks, D.

    • I’m having the same problem. It used to work on both (old and new) now only on the old version of twitter.

  21. Many thanks! I’ve not much to add but I really love this plugin so I thought I should leave some gratitude. :)

  22. Pingback: Sitenize Twitter Ekleyebilmenin 10 Yolu | Erken Rezervasyon 2011 | Erken Rezervasyon Tatil | Erken Rezervasyon Otel

  23. A few days ago Tweet This stopped working when a person clicks “Tweet this”. It still brings them to twitter but no longer has anything in the “What’s Happening? box”. Any idea what happened? I never changed anything.

    • It’s true Tweet This doesn’t seem to work with the new version of Twitter. I’m hoping for an update!

        • Honza, I noticed you’re using “Share” links on your site. That still works, its the Web links that don’t work anymore.

  24. Pingback: Top 10 Wordpress Plugins « Sapien.IT

  25. How can I force Tweet This to always use my URL shortener regardless of the message length?

  26. Pingback: 10(Diez) Herramientas Twitter para blogs |

  27. One more thing – Tweet This does not seem to be UTF8 savvy. I tried to use the ö letter in my tweet but it did not get out right.

  28. Great plug-in, just scheduled tweets don’t seem to work for me. Can this have something to do with the WordPress time zone being different from the server’s time zone? My server’s time zone us UTC while I want to use UTC-7 for my blog. So I have set UTC-7 in the WordPress settings but Tweet This still shows the UTC time and does not send out any scheduled tweets. (I have not tried to wait 7 hours yet…)

    • I think Tweet This uses the MySQL function CURRENT_TIMESTAMP() (in the tweet_this_init() PHP function) to determine when to tweet posts, so that’s probably always the server time and has no bearing on WordPress time. Also, the scheduled time in the box on the Write Tweet page is set with the PHP function date(“Y-m-d H:i:s”, time() + 3600);, thereby adding 3600 seconds (1 hour) to whatever the server time is.

      So, I think you will just have to set the time manually when you schedule a tweet and mentally calculate your time in UTC (add 7 hours in PDT and 8 hours in PST). I did not consider this problem because I use GMT (UTC+0) on both my server and blogs.

      • I am sorry but this really seems to be a bug. After waiting 7 hours the tweet was published.

        In detail: the Write Tweet page shows server time (UTC). It does not let me set the scheduled time to past, so at 10:00 UTC I cannot set the time to a lower value than 10:00. But when I do that, the tweet does not go out until 10:00 PDT.

        I suggest that, to fix this, you change Tweet This to use only one date/time function everywhere. This will ensure consistency.

        Any chance to fix this soon? Or can you at least suggest how to modify Tweet This to allow scheduled time in past?


      • Since you do not seem to care I decided to spend some time trying to fix it on my own.
        I discovered that replacing
        time() + 3600 * get_option( ‘gmt_offset’ )
        in the tweet-this.php file fixed the issue for me.

  29. Pingback: Wordpress Tweet This | David Defoe’s Weblog

  30. Pingback: Complete A-Z on How to Promote Your Website on a VERY Limited Budget | [Insert Website Here]

  31. Hi,
    Great plugin. One problem that I have is that Extended Services do not work for me. I tried a number of configurations in extended services section (different types of icons etc), but so far I only managed to get small icon for digg to show up while many others were selected. It seems completely random, but maximum of one other services besides twitter shows. I use current version of wordpress 3.1.1. I saw that Darius had a similar problem a while ago – I DID select desired services in extended services – just to take this out of equation.

  32. Pingback: Plugin collection «

  33. Pingback: Useful Wordpress Plugins for Twitter Functionalities - webdesigncrowd

  34. Pingback: 5 plugins para integrar o seu site com o Twitter | Hospedagem de Sites

  35. Pingback: Free 1 year web hosting

  36. Pingback: Os melhores serviços e aplicações para Twitter « t2r

  37. Hi Richard,

    First of all thank you for this great plugin, after hours of searching i’ve now found the great plugin that works just how i want it. I Have just one question. Is it possible to remove the “tweet this Post” message when posting on facebook?

    See the image below, is it possible to remove the text in the red circle?

  38. Pingback: 这13个WordPress插件,你安装了吗? | 痛定思痛

  39. Pingback: Twitter-бесплатная раскрутка сайта,блога и своего бренда | Earnings - Millionaires™

  40. Pingback: (Anti) Social WordPress Spring Cleaning | WordPress and Facebook Consultant | (Anti) Social Development

  41. When trying to set up the application with Twitter it does not provide me along the right hand side with a link that says my access token on the right.

  42. Pingback: President Obama gets Set Straight by a 95 Year Old Pearl Harbor Survivor (via Village of the Banned) | Voting American

  43. Pingback: 20 MUST HAVE WordPress Plugins For You To Get Started Effectively | DownGraf - Design weblog for designers

  44. Hi Richard,

    When are you planning to update TweetThis with the following requests on my behalf:

    1. HYVES “Respect” and “Share” buttons for all Dutch users of TweetThis
    2. Some more buttons with a monochrome style i.e. dark-grey (my likings)

    Read about the problems with the FaceBook share. On some forums they state that FB is working hard to fix this BUG. To my understanding it has to do something with the cache !?

    **UPDATE** 3/10/2011 12 AM EST: In an effort to keep the system as stable as possible while Facebook works on a fix for the root cause, we are currently leveraging Facebook’s mobile share endpoint for all shares. Though the user experience is geared to a smaller form factor, it does function correctly and allows us to continue to support sharing functionality. Facebook has let us know that a fix will be deployed quickly; we will resume our normal operation as soon as that happens.

    **UPDATE** 3/9/2011 6 PM EST: We deployed a workaround to restore core Facebook sharing functionality via AddThis while we await a more permanent solution from Facebook. We are continuing to monitor progress on the issue from their side and will keep you updated with additional information as we have it. In the interim, we believe the workaround re-enables all sharing features. Thanks for your patience.

    This morning we got reports that their were problems with sharing to Facebook. After some investigation, it appears that overnight Facebook may have introduced a bug as part of an update that has broken Facebook Sharing.

    With the bug, any url that hasn’t been previously cached within Facebook will initially not show the title and image of the page and then get an error when shared.

    This bug has been discovered by a number of other developers and reported to Facebook. We’re escalating the issue through our channels and hope to have it resolved as quickly as possible.

    If you’d like to see the issue first hand or if you have a few extra special URLs, Facebook does make a tool that you can force URLS to be cached in their system.

    We’ll keep you updated as things change. Be sure to follow us on Twitter as well for the latest updates.
    ————————–end quote

    Let’s hope they fixe it soon!


      • That’s great! I figured they would work it out on their own. I’ll work on the Dutch social network in the next version — it doesn’t sound too hard to add.

        • Hi Richard,

          Would be great for the Hyves Button!
          How about some new and more ‘stylish icons’ i.e. mono-dark/light grey with original color “on-hoover”?


  45. This is the best Twitter plugin. Thank you so much for this — I will donate when I have a decent amount of money to spare.

    I do have one small question. Is there any way to manually insert the tweet and facebook codes to my theme? I’m redesigning and I would like for them to show up in a specific area (next to the comments link on each post). Is there a way to do this?

    Thanks again for the awesome plugin!

    • Thanks Nina! Try <?php echo get_tweet_this(‘twitter’); ?> and <?php echo get_tweet_this(‘facebook’); ?> for that, or if you need something more specific, let me know.

      • Hi Richard.

        I like your plugin but I know I need more specific details like disablng anything? Because when I insert the twitter “get tweet” tags next to the comments at the bottom of my posts it does not work… also is there a way to make it not show up on certain posts?

        • To hide Tweet This on a post or page, create a custom field titled “tweet_this_hide” with the value of “true”. Make sure you are inserting the PHP code in the correct place in your theme’s files under /wp-content/themes/[title]/ or wherever you keep them.

          • Thank you for the info on the “Tweet This Hide” Custom Field… AND THANK YOU FOR YOU QUICK RESPONSE!!

            Your going to have to go to my blog to understand what I am trying to tell you:

            I have no problem as to “where” to insert the get_tweet_this php…(I designed and coded the the theme). But my problem is the image does not pop up (only a question mark) and the original tag still sits below the post… same with the my posts where I put “Tweet_This_Hide”. It eliminates the original tag… but the question mark is still at the bottom (page 3).

            So there must be something on your plugin I have to click or have override so only the php shows up and with the selected logo too.

            Also, I was trying to send a new post and I got this message “Tweet failed. Twitter returned HTTP 401. Check your OAuth settings and re-save this post to try again.”

            I checked my OAuth settings and everything is how I was told to do it… even tested it again and it said it was authorized. But… I didnt see a place where I could load my twitter username and password either…. so maybe this is a problem?


            And thanks for respponding :smile2:

          • Okay, try <?php remove_filter(‘the_content’, ‘insert_tweet_this’);
            echo insert_tweet_this(); ?> since that should use the standard method.

          • YES!!! Its works Thanks… Now I just have to try and get it to display inline with the comments instead of pushing itself underneath

          • This is a kludge, but try:

            <?php remove_filter(‘the_content’, ‘insert_tweet_this’);
            echo str_replace(array(‘<div class=”tweetthis” style=”text-align:left;”><p>’, ‘</p></div>’), ‘ ‘, insert_tweet_this()); ?>

          • Lol… Nope Doesn’t work… but I think I there might be a why… Ill get to it later and when i figure it out… Ill post you. :big-grin:

          • Try renaming tt-config-sample.php to tt-config.php in the /wp-content/plugins/tweet-this/ directory, then open it and change the definition of TT_PREFIX and TT_SUFFIX to be blank for both, and save.

          • Hi Richard,

            Thanks for the useful plugin. I currently have 1.6 but was trying to upload to 1.8.2. WordPress wouldn’t let me but would say this:

            Unpacking the update…
            Installing the latest version…
            Removing the old version of the plugin…
            Could not remove the old plugin.
            Plugin update failed.

            I’d like to have 1.8.2 to be able to place “Tweet This” at top of posts. Any thoughts?

            Thanks for your help. :)

          • I always have that problem too, and I don’t know why, so I would recommend just using FTP for the plugin. Download the ZIP file manually, unzip it, delete the wp-content/plugins/tweet-this/ directory and upload the new tweet-this directory to wp-content/plugins/ with WinSCP or FileZilla.

          • Wow, thanks for the quick reply. I tried that, too, but FileZilla wouldn’t let me delete the existing tweet-this directory. I even tried just overwriting it but that didn’t work either. I remember having this same problem a couple of months ago. I’m stumped. :(

          • It’s a permission issue, try logging on to the root account and deleting the directory, or change the permissions to 777 via the command line or SSH and then delete it, or try opening the tweet-this directory and deleting the folders in it, then opening the unzipped tweet-this-directory on your computer and uploading all the folders and files in it to wp-content/plugins/tweet-this/.

          • Eureka! I just renamed the old one, deactivated it on WP, and uploaded the new tweet-this directory using FileZilla. It worked! Thanks so much, Richard!


      • Hi Richard!

        I’m a little bit of a noob as far as php is concerned. I tried putting the manual code on my footer to float on the single pages like my main page has ( but it’s not showing up?

        May I ask for the actual codes that I should put? I currently have:

        <div align=”right” id=”bottomfloater”>
        <?php remove_filter(’the_content’, ‘insert_tweet_this’); ?>
        <?php echo get_tweet_this_manual(); ?>

        Okay, now I managed to make them appear both as floating and after the post, but I need to eliminate only the “after the post” part. Can you check this page please?

        This is what I have on the codes now:

        <?php remove_filter(’the_content’, ‘insert_tweet_this’); echo insert_tweet_this(); ?>

        It’s also not showing up if I uncheck the “Insert Tweet This block after content” option.

        • If you are trying to get the Tweet This block to be right-aligned, you can go to Settings > Tweet This, open Advanced Options, and set Alignment of Links to Left, Center, or Right, then Save All Options.

          • No, I’m trying to hide the Tweet This buttons after the post to avoid redundancy. I want them to show up on the floating bar below instead.


  46. We’re selected Facebook from the extended services.
    Problem is that it seems to be selecting random text from the post. Sometimes a comment, sometimes text from a PHP include file.
    Any thoughts on what we’re doing wrong?

    • This is Facebook’s behavior for the Facebook simple API. Facebook selects the META description from the HTML source of your page, and if you have none, it uses a snippet from Bing instead (Microsoft’s search engine). I suggest you install a plugin that sets a META HTML descriptor that is the first 20 words of each post, the excerpt, or whatever you prefer. I use All-in-One SEO Pack.

  47. Absolutely nothing I do changes either the “Extended Services” links listed nor their appearance on my actual blog. Not even uninstalling Tweet This and deleting the old directory, then installing the latest update, making the desired changes, and saving. I still get the same links displayed the same way as before I uninstalled.

    What can I do to get the right links to show up the right way, please?

  48. Pingback: 23 Wordpress Plugins Used in March 2009 | Ari Herzog

Comments are closed.