The WP-to-Twitter plugin posts a Twitter status update from your WordPress blog. URLs can be shortened using a variety of services; the focus is on services which provide statistics for the link. Available shorteners are Su.pr, Bit.ly, Yourls, and WordPress.
The plugin can send a default message for updating or editing posts, pages or any custom post types, and also allows you to write a custom Tweet for each post which says whatever you want. Both custom Tweet texts and your default message support a variety of shortcodes to substitute your blog title, post title, etc., in your tweeted update.
Any status update you write which is longer than the available space will be truncated by the plugin. This applies to both the default messages and to your custom messages.
Installation
- Upload the `wp-to-twitter` folder to your `/wp-content/plugins/` directory
- Activate the plugin using the `Plugins` menu in WordPress
- Go to Settings > WP->Twitter
- Adjust the WP->Twitter Options as you prefer them.
- Provide your OAuth integration keys.
- Optional: Provide your URL shortener API key if you want to have statistics available for your URL.
Comments on this post are now closed; please make support requests on the support page.

Comments on this post are now closed; please follow comments on the new support page!
@Vince Glad that it’s working for you now. Wish I could help you with the FeedWordPress problem, but you’ll have to ask them!
@HotForWords I sent you an email with a patched copy, but I can easily imagine that you wouldn’t have received (unknown zip file from an unknown sender…) If you didn’t, let me know - I’d like to check whether the patch works before I make it public.
@Erik Have you checked to make sure all your settings are what you expect? Are you getting any error messages? Did you set your Twitter username and password?
Hi there, we have added wp to twitter, but when we want to post a message trough WP it does not show in twitter, does anyone know what the problem is?
Greetings erik
I had to go all the way back to 1.3.7 to have the plugin work.. even with 1.4.4 I still get the error: Cannot use object of type stdClass as array in /html/wp-content/plugins/wp-to-twitter/wp-to-twitter.php on line 272
OK, went for the upgrade to your latest version, and can report back that everything works great. Excellent work, and thank you.
just wish I knew why I still get the RSS feed errors as an error log with tons of entries like this:
[10-Aug-2009 17:39:25] MagpieRSS: Failed to fetch (HTTP Error: malforme)
Using the FeedWordpress plugin
I don’t provide official support for WordPress MU, so I can’t say for sure whether it’s an issue with MU. I recommend giving version 1.4.4 a try — most of the bugs concerning 1.4 should be gone now, but this is something new to me, so I can’t say for sure whether it will be an issue.
-Joe
I wondering if after deleting the word ‘New:’ it’s the leading # causing it
I am using WordPress MU 2.8.2 and your plugin version 1.3.7 as it works without issues otherwise and concerned about some of the new bugs others have reported.
I can’t reproduce the error; what versions are you using?
Hi Joe,
Do you mean the text in the field “Text for this Twitter update” which by default has:
New: #title# (#url#)
If so, when I remove the ‘New:’ my posts don’t get Tweeted
@vince You can already do that. It’s in the settings.
Hi,
Can you allow us to remove the leadfing word “New:” please?
Don’t really need it, and it takes up a valuable 5 characters.
Thanks
No, not at the moment. Given the demand, however, it will be one of the next features added.
Is it possible to add code for post content, e.g. #content to insert first 100 characters from the post?
Hi there,
I got the error message
I can’t delete it… Neither upgrading to the latest version..
Plus i would like to tweet the post if it was not tweeted.
Thanks
Ever since I upgraded I cannot use the plugin. I keep getting the following error:
Fatal error: Cannot use object of type stdClass as array in /html/wp-content/plugins/wp-to-twitter/wp-to-twitter.php on line 272
No errors while installing?
Plugin activated?
Twitter Account added?
It doesn’t work for me. Nothing happens!
The missing settings page is a known bug (in the FAQ) — did you attempt the solution provided above? If it didn’t work, then this is something new.
@cam There seems to be something quirky about updating posts in this version. Hopefully I’ll have time to fix that over the weekend.
@ Bruce: You can set an idividual Twitter Account for each WP-User-Account.
I’m running v.1.4.3 but don’t have these errors. It works pretty well for me.
Same problem as @Melvin: the settings page is empty, after upgrading from 1.3
cheers,
Tom
Hi there, the plugin has started playing up for me was good up till just the other day. updated to 1.4.3. using wordpress 2.7.1.
You can see the problem here: http://twitter.com/bibigallery
I had the #tile# set but not the #URL# I was updating a post.
This sounds like a great plugin. Will it post to more than one Twitter account?
My WP to Twitter Settings page isnt loading anymore! =(
I just get an empty page.
I tried to reinstall the plugin but it didn’t help!
Any idea what could be wrong?
Thanks
Just wanted to say a big thank you for this plugin. I’ve only just found it having waded through a large number of WP plugins that purported to post bit.ly or other shortening service links, only to find that they weren’t working properly and didn’t do the job I wanted them to, which is a shame - if they’re not ready for ‘prime time’ developers best serve themselves by holding back until they are. Yours works ‘straight out of the tin’, was a doddle to set up, and I’m very pleased with its ability to post Twitter notices not only of new blog entries but also edits, pages and blogroll links. Nicely done! Thanks again!
Found a bug with the new hashtag support, tags that contain spaces are handled very poorly, you need to either remove spaces or replace them with _
AWESOME plugin. Just upgraded, got excited about being able to add my posts’ tags as hashtags. Then I realized, my half-asleep mind confused tags with categories — THAT would be nice. I tend to put tons of tags on my posts, but I keep the categories to a minimum.
In any event, I have my plugin set so that it ONLY tweets when new posts are published. However, when I updated a post, the plugin sent out a tweet that consisted of nothing but the tags from that post. So first of all, it shouldn’t have tweeted anything to begin with, since I have “post update” tweets disabled. Second of all, is it really just supposed to just “tag vomit” without the title or URL? Third, when there’s a multiple-word tag (I often tag names of people or companies mentioned in my posts), Twitter obviously only links the first word. Even though, as stated, I won’t be using the tag feature, others who do might find it nice if there was some way to convert the spaces to underscores and/or just eliminate them on the fly.
i am also getting the same json error. :\
Hi,
I downloaded it again (04.08.2009 8:33 UTC, 10:33 GMT+2), but the error is still present:
Fatal error: Cannot redeclare class Services_JSON in /srv/www/vhosts/manuel-rauber.de/httpdocs/wp-content/plugins/wp-to-twitter/json.class.php on line 116
Any ideas?
Hiya
Im now also getting
Fatal error: Cannot redeclare class services_json in /var/www/vhosts/spiceworks-news.co.uk/httpdocs/wp-content/plugins/wp-to-twitter/json.class.php on line 116
As Manuel, any fix? i have redownloaded and tried to activate on another machine.
Great plugin though
Thanks!!! funny, that. It works now.
You must have downloaded the plugin during the interval between when I first uploaded 1.4.2 and when I noticed I’d made a typo…if you download the plugin again and over-write your existing copy, this problem should go away.
Sorry about that!
Hi
I am unable to activate your plug-in. I am running the latest WP
this is the message I get — thanks in advance!
Warning: main(/var/www/html/blog//var/www/html/blog/wp-content/plugins/wp-to-twitter/json.class.php): failed to open stream: No such file or directory in /var/www/html/blog/wp-content/plugins/wp-to-twitter/wp-to-twitter.php on line 42
Hello!
Since I updated today, I get the error
Fatal error: Cannot redeclare class Services_JSON_Error in /srv/www/vhosts/manuel-rauber.de/httpdocs/wp-content/plugins/wp-to-twitter/json.class.php on line 797
when I try to activate the plugin.
Any Ideas?
Greetings from Germany
Great Plugin! Works very well. Thx for developing it!