WordPress Tweeter

WordPress Tweeter is a plugin that will update your twitter account every time you make a new post on your blog. You will be able to use your own tweet template. This plugin is released under GPL. Credit is highly appreciated. When linking to this plugin, please link to this post instead of the download link. PLEASE REPORT ALL BUGS!

WordPress Tweeter

Usage

To setup WordPress Tweeter, go to Settings -> WP Tweeter. From there, you can configure the options for your Twitter account.

Template Tags

  • %blogtitle% – blog title
  • %posttitle% – title of post
  • %url% – URL of blog homepage
  • %posturl% – URL of blog post
  • %date% – Date when the post is published or updated
  • %time% – Time when the post is published or updated
  • %tags% – Includes the tags as twitter hashtags (since 0.6.3)

Download WordPress Tweeter Plugin

Parameters

Parameters are useful when tracking where an user comes from. If the parameter is source=twitter, the url will link to http://fusionswift.com/?source=twitter.

Tweet When Post Updated

There is an option to tweet when a post is updated. If this is enabled, it is recommended to use either %time% or %date% in the update tweet template, since it may result in a duplicate tweet.

New Tweet

The new tweet feature, which can be found at Tools -> New Tweet, allows you to tweet from right inside WordPress.

Planned features

  • Tweet to multiple twitter accounts
  • Include category in tweet

If there is a feature that you would like to have implemented, please leave it in a comment.

Changelog

Version 0.7.2 – Current Version

  • Strips slashes in New Tweet feature
  • %time% now fetches the time zone from WordPress when available, defaulting to UTC.

Version 0.7.1

  • Fixes two foreach statement issues

Version 0.7

  • Option to not tweet for certain categories and tags (blacklist)

Version 0.6.8

  • 0.6.7 adds option to tweet on post by post basis, but scheduled posts stopped tweeting as well. 0.6.8 fixes it for scheduled posts, although you won’t be able to choose whether to tweet or not yet for scheduled posts.

Version 0.6.7

  • Option to choose to tweet on a post by post basis
  • Option to customize tweet template on a post by post basis

Version 0.6.6

  • Adds “?” to parameter if it doesn’t already contain a “?”
  • Adds support for bit.ly API

Version 0.6.5

  • Enhances %tags% support
  • Strips \ from being added when ” or ‘ is found
  • Prevents “undefined variable” errors

Version 0.6.4

  • Fixes bug when tweeting within WordPress

Version 0.6.3

  • Basic explanations added to the Help drop down page
  • Add post tags as hash tags (still in testing, so may not work entirely)
  • Code reoptimized

Version 0.6.1 and 0.6.2

  • Fixes %posttitle% problem

Version 0.6

  • Updated to work with QuickPress
  • Predefined URL shortener list optimized
  • Bit.ly added and tr.im removed
  • Better permalink optimization
  • Allows changing of Twitter account
  • Nicer settings page

Version 0.5.6

  • Removes “Upgrade Available” notice when plugin is upgraded
  • No more tweeting when draft is saved
  • Plugin optimized

Version 0.5.4 and 0.5.5 – Posting when draft saved

  • Hopefully fixes %posttitle% and %posturl% issues

Version 0.5.3 – %posttitle% and %posturl% issue

  • Checks the post link, post title, and post ID of new post in a better/smarter way
  • Adds a new URL shortener
  • Added a tweeting function
  • Optimizes the tweeting cURL function – allows you to create a new tweet using wp_tweeter_new('Test Tweet');
  • Checks for new WPTweeter every 24 hours

Version 0.5.2

  • There aren’t any changes in version 0.5.2. Version 0.5 and 0.5.1 caused lots of confusion. I realized everyone who downloaded it from here had the working version 0.5.1, although it had “Version 0.5″ in the wptweeter.php file. The WordPress repository had the broken version 0.5 with “Version 0.5.1″ in the wptweeter.php file, which was the exact opposite. However, the people who had the working version from my site had “Version 0.5″ in the plugin, which prompted the user to upgrade to the broken 0.5.1 on the WordPress repository. All the numbers have been updated to 0.5.2.

Version 0.5.1 – Had version 0.5 in wptweeter.php file

  • Many users have been getting a PHP error since the script was trying to send a Location header after the others have been already sent. This have been fixed.

Version 0.5 – Generates error on some PHP installs, use version 0.5.1

  • Uses OAuth instead of HTTP Authentication
  • Option to not use any URL shortener
  • Ability to tweet from right inside WordPress (Posts -> New Tweet)

Version 0.4.4

  • Fixes uninstall function
  • Add minify.us as URL shortener
  • Verify Twitter login when updating options, and sends notice if login incorrect

Version 0.4.3

  • Shortens the title of blog title and/or post title when the tweet exceeds 140 characters.
  • Fixes issue of using the update post template on new posts when the “Tweet When Post Updated” option is enabled.
  • Adds the tags, %time% and %date%, to prevent duplicate tweets if tweeting a updated post.
  • Displays a notice if WordPress Tweeter is not configured.

Version 0.4.2

  • Option to not tweet when post is updated
  • Option to tweet when you update a post
  • Custom template to tweet after a post is updated

Version 0.4.1

  • Allows the SSL API. For help, please see above.

Version 0.4

  • Options are combined. This is a major fix that will decrease the server load, and speed up publishing posts.

Version 0.3.1

  • Fixes %url% major issue
  • Places <div class=”wrap”> around update form
  • URL services replaced selected with selected=”selected”

Version 0.3

  • Choice of tweeting using post link (%posturl%) or homepage (%url%)
  • Removes ‘?’ at the end of URL if the URL Parameter is empty
  • Added new URL shortening services: is.gd, tr.im, cli.gs, short.to, chilp.it, and th8.us
  • Modified username and password description

Version 0.2

  • Easy uninstall
  • Allow extra URL parameters

Version 0.1

  • Basic features implemented
  • Allowing custom template with blog title, post title, and blog url
  • Using tinyurl for URL shortening
  • Using basic HTTP authentication with cURL for Twitter API.

124 Responses to WordPress Tweeter

  1. Bruno says:

    Download link is broken.

  2. Patrick says:

    With WP3.0 (and since 2.8 or 2.9), you can use http://www.domain.com/?p=123 as an alternative to shortlinks. While not as short as some third party options, the links always stay with your site, never go out of business (until you do) and have the added benefit of branding the tweet while improving the confidence of the end user that the link they click on will take them someplace they want to go.

    I think in the link shortening options, it would be nice to use the WP shortlink option. I hacked the code for our site:

    if($service != 'none') {
    .
    .
    .
    } else {
    $homeurl = get_option('home');
    $posturl = wp_get_shortlink( get_the_ID() );
    }

    Making it an option for the non-php types would be a great benefit.

    I’ve been enjoying it though. Nice work.

  3. Radu says:

    I have the last version of WP Tweeter, but in my blog appears, this:
    A new version of WordPress Tweeter is available. Download Now

Leave a Reply

Your email address will not be published.

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>