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!

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://www.fusionswift.com/?source=twitter. There are couple of tags that can be used inside the Parameter field.

  • %blogtitle% – title of the blog, provided as “title-of-the-blog”
  • %posttitle% – title of the post, provided as “title-of-the-post”
  • %date% – provided as yyyymmdd
  • %time% – provided as hhiiss

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. View Changelog

230 thoughts on “WordPress Tweeter

  1. Doug B.

    I updated to version 0.8.2 and took the opportunity to change the shortner I used – moving away from bit.ly due to some places blocking it. I deleted the bit.ly info and api key and changed the shortner to is.gd when I clicked on save settings I got a serious error message.

    Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /nfs/c03/h04/mnt/50940/domains/reviewgeek.net/html/wp-content/plugins/wordpress-tweeter/wptweeter.php on line 196

    Warning: file_get_contents(xxxx) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in xxxx/wp-content/plugins/wordpress-tweeter/wptweeter.php on line 196

    Warning: file_get_contents() [function.file-get-contents]: https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in xxxx/wp-content/plugins/wordpress-tweeter/wptweeter.php on line 196

    Warning: file_get_contents(https://api.twitter.com/oauth/request_token?) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in xxxx/wp-content/plugins/wordpress-tweeter/wptweeter.php on line 196

    I tried removing all the settings, deactivating, and re-activing but still get the same error.

    Before I click on the update settings button the plugin worked perfectly with no errors – now I have this error.

    I am hosted on Media Temple

    Reply
    1. Tech163 Post author

      Oops. Should be fixed in 0.8.3. Seems like your PHP install doesn’t allow file_get_contents. We are currently in the process of migrating from wp_remote_get to cURL, and we temporarily choose to use file_get_contents. The new version reverts some parts back to wp_remote_get. I’d imagine Media Temple has cURL installed, so it should continue to work when we migrate to using cURL for all API communication.

    2. Doug B.

      Yes I was able to authorize with Twitter and I can tweet at least using the New Tweet tool but I get the following error showing in the plugin admin page (I removed my site info):

      Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in xxxx/wp-content/plugins/wordpress-tweeter/wptweeter.php on line 366

      Warning: file_get_contents() [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in xxxx/wp-content/plugins/wordpress-tweeter/wptweeter.php on line 366

      Warning: file_get_contents() [function.file-get-contents]: https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in xxxx/wp-content/plugins/wordpress-tweeter/wptweeter.php on line 366

      Warning: file_get_contents() [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in xxxx/wp-content/plugins/wordpress-tweeter/wptweeter.php on line 366

      And when I click on “change account” I get an error from Twitter saying I don’t have a token

    3. Tech163 Post author

      Apologies for the delayed response. Worse case scenario, uninstall (using the link) and reinstall. Also make sure you’re running 0.8.3!

  2. Doug B.

    I went back to the previous version and the error noted above went away but when I tried to sign into twitter I got the token echoed back as text and it didn’t put that info into the plugin.

    This is what I’m getting now. I removed the token numbers to post here
    Array ( [oauth_token] => xxxx [oauth_token_secret] => xxxx [user_id] => xxxx [screen_name] => reviewgeek ) 1

    Reply

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>