As tweeted yesterday, I’ve just completed a new WordPress plug-in to show rotating tweets.
It’s easy to add using a widget or a shortcode in a post or on a page such as:
and, as a result, you get:
After travelling through Surbiton and New Malden at walking pace, train is now moving again ...
For a bit more fun, you can add some extra options such as:
After travelling through Surbiton and New Malden at walking pace, train is now moving again ...
And the latest version goes for the official look:
After travelling through Surbiton and New Malden at walking pace, train is now moving again ...
After travelling through Surbiton and New Malden at walking pace, train is now moving again ...
You can also search:
RT @Fairygodlawyer #secretcourts #legalaid cuts and #wriggleroom A worrying trend? When will it stop? #ruleoflaw #accesstojustice m.bbc.co.uk/news/uk-226121…
You can see the widget in action on the top-right of this page.
You can download the plug-in from here.
All this was only possible due to the good people of WordPress, the Twitter API, jQuery and jQuery Cycle - and Syd who showed me jQuery Cycle in the first place - so a big thank you to them too!












Same problem with IE9… no rotation of the news.
Thanks again
Thanks a lot Martin for your courtesy ahd help.
What should I do now? I Download the new version of script?
Let me Know…
I return on line at 6PM
Thanks thanks again!
If you click on the ‘…/wp-admin/plugins.php’ link, it should let you upgrade to the latest version – which should also fix the problem.
Martin
Dear Martin…
Now with IE8 all works perfect!
For IE9: the rotation works ok, but so to running the slideshow on the homepage I have to reload the page.
Can you test my homepage with IE9?
Thanks for ypur patience
mark
Dear Mark,
Rotating Tweets works fine with IE9 too. But I’m also getting the same problems with the slideshow in IE9 and IE10. I just get a little rotating circle, but nothing more.
The only error reported is
portale, line 430 character 204
but I don’t understand why that would cause the issues.
On IE 7, I see a different problem on lines 25 and 36 of http://www.classemini.it/portale/wp-content/themes/mojo_exciter/Mojo-Themes_Exciter.Magazine/js/settings.js?ver=3.3.2 – it may help to remove the extra commas.
Martin
Thank you very much for your help.
It seems a problem with the slideshow of the theme that is in conflict. Disabling the plugin everything returns to normal.
Let me know if we find a solution in the meantime.
The problem no longer exists with all other browsers.
I hope it’s been useful to report this thing.
If you have news please let me know… if necessary I send site login information.
I will send a donation to short … Thanks for everything!!!
Many thanks for your kind words.
A couple of more thoughts. The problem might be with the slider code. To address this:
It’s possible that one or both of these options might solve the problem.
Hi Martin,
Great plugin! Any idea why the #term links are going to a page not found on twitter? Have they changed something that you need to update in the plugin?
Thanks
They have and I have!
Many thanks for pointing out the problem.
No worries, thanks for fixing it so quickly.
Cheers.
The fix is now live.
Dear Martin! At first, thank you for your work! It’s great! And I’d like to ask you why in your plugin don’t work russian hashtags? This is the only weak point.
Hi Denis,
Now there’s a challenge. Does the latest version – http://downloads.wordpress.org/plugin/rotatingtweets.zip work?
Denis,
This should now be fixed with the latest version.
Martin
Hello Martin,
First, great plug-in. Unfortunately, I’m running into the “no rotating” issue. I’ve placed the short code on the “about us” page, under a bio pic. Do you have a step-by-step for troubleshooting? Or, can you help resolve if I supply admin rights for a brief period?
Thank you for the compliment!
If you open the page – press [F12] (in Chrome or IE) or [CRTL]+[SHIFT]+K in Firefox and then go the console, you will see that there’s a problem with the gprofiles.js script that means that the JavaScript ‘breaks’ before it gets to Rotating Tweets.
I’m not sure if this is caused by gprofiles.js itself – or by some other JavaScript that triggers gprofiles.js to fail. (The gprofiles.js script is associated with showing Gravatars – so if you switch off this function – the page might work again).
It may also be compounded by having the Rotating Tweets .JS and .CSS at the bottom of the page (which doesn’t happen with the widget, so I’m not entirely sure why it’s happening here!). If you try Rotating Tweets as a widget, it might solve the problem – although it won’t fix the Gravatar script!
I’d like to use the rotating tweets on my site. I have followed the instruction and created a twitter application and filled in the relevant info on the plug and updated. I am using Twenty Eleven theme and have placed the widget in Main sidebar. Not sure whether what I am doing is actually correct. Please help.
Hi MG_Gray. Thank you for using Rotating Tweets.
When you saved the settings, what message did you get at the top of the page?
Also, what screen_name are you using in the Widget?
I am using this plugin on site as widget in the sidebar but getting this error message. “WordPress error message: Connection time-out.”
I am new in wordpress. Please help.
It would be helpful to know which website this is so that I can take a quick look.
Have you entered all the Twitter API data – as per the instructions?
Hi Martin,
I have entered the twitter API data. But I am getting the error.
The site is not ported anywhere. Its on my local machine only.
I referred all the things. If I use the witter Feed: Embedded Timeline WordPress Plugin than its working fine..
But I want to display sliding. Its showing me the error ” couldn’t retrieve the data.”
If you’re on your own machine, I suggest going to `wp-config.php` and changing the value of `wp_debug` from `false` to `true` and you should get an error message in the HTML that tells you what the problem with.
It is almost certainly a PHP setting.
What error message do you get at the top of the page when you try to update your API settings?
Martin
PS: The latest development version of the plug-in should give you more information.
Hallo martin…
I use rotating tweets and is very good
Only one question please
now i have 10.000 followers
why i see on plugin 10k follower ?
Is possible see the real numbers?
http://www.doremifasol.org/news/
Thanks
I’m afraid that Twitter designs that button. There’s nothing I can do to change it.
You can see the available options at https://dev.twitter.com/docs/follow-button
Thanks
Hallo Martin, sorry for my other question…
Is possible use your plugin with one hashtag and not user?
My problem is
Visualizer a live conversation on twitter
Thanks for your support
Tony,
You can do this via a shortcode currently.
[rotatingtweets search='#yourhashtag']
This will also work (in theory) if you add it as a text widget.
Yes Martin work fine…
But is possible have plugin’s look
In text i see only text without avatar
[rotatingtweets search='#18maggioconvoi' official_format='1']
RESOLVED…. THANKS
Your Plugin is fantastic Martin… 5 Stars
Hi Martin,
Once again, thanks for a great plugin.
Question: Has something changed regarding the display of the icons and sub numbers etc, as none of this information seems to be displaying any more when using the “Original rotating tweets layout”, no matter which option is selected.
Dev page (down in the footer): http://69.195.124.94/~naturcx5/
Thanks
Don’t worry, sorted.
Cool.
I was going to ask whether it was actually on the official setting or not since, as you say, it seems to be using the original format.
Hi Martin
I’ve just downloaded and set up Rotating Tweets. It’s a lovely plug-in. Thank you for sharing it. Thanks also for the info about getting the Twitter app keys.
Jon
Hi Martin,
Is there a global setting for making all links within the plugin to _blank?
For now I’ve adjusted line 1707 of rotatingtweets to be _blank, the same as 1703.
Thanks
In a short-code, add
Hi Martin, love the plug-in! Just had one question, I’m using the shortcode in a column. Everything is working fine, but what I’d like to be able to do is show more than one tweet at a time. Is there any way to adjust the height of the container to show 3-4 tweets in the feed at a time as they scroll up?
Unfortunately not currently. I’m currently using the jquery.cycle plug-in to handle the rotations and it doesn’t support this. It is possible, but would require a full rewrite of the javascript from scratch…
Martin
Hi – thanks for your plugin. Is there anyway to show more than 1 Tweet rotating?
Not currently.
Hi Martin, thanks for the great plug-in – Rotating Tweets is fantastic!
Just a quick question though. Apologies if I’ve misconfigured something (I’m new to WordPress) but since the clocks went forward last weekend, my tweets are still showing in the old time (an hour earlier than tweeted). Just wondered if this is my mistake or if this might be a problem?
Many thanks,
Chris
Sorry – just worked it out. My website was running on UTC rather than UTC+1. Don’t mind me!
Thanks,
Chris
Thanks for your nice wordpress-plugin.
Easy to install, easy to manage.
Tested it with
* Chrome Version 28.0.1469.0 dev-m
* Firefox 19.0.2 and 20.0
* IE9.08112.16421 with updates 9.0.14
All working
HI Martin,
I have pullled in tweets from a list consisting of 3 twitter accounts. I have set the count to ’50′ but it never seems to display any tweets from the other 2 accounts – there are a lot from the first account, but not more than 50 before another account’s tweets should show up. Is there a way to ‘randomize’ the order the tweets are pulled from the list? Or any other solution/suggestion?
Great plugin!
It could be done, although currently it shows results in reverse chronological order.
Are you using the short-code or the widget? If the latter, have you set the Tweet type to ‘search’?
Martin
Hi
Many thanks for your plugin. I am trying to use the widget to show tweets from two accounts as the readme says:
“= How can I pull information from two accounts into one widget =
The easiest way is to use a search term like `’from:account1 OR from:account2′`.”
I just cannot see how to apply this search term to the widget. I can get it to work with either account, but not both.
Many TIA
Gerald
Two quick checks:
Martin
RESOLVED: Thank you for your prompt response.
I have updated to the latest version and changed the type of tweets.
I also had to sort out my interpretation of the syntax for
from:account1 or from:account2
and it appears to be working.
Gerald
Is possible add a list in plugin?
this list
https://twitter.com/saltasullavita/claudio-baglioni
Sure. Assuming you are using the latest version, select your options as follows:

Thanks for all Martin…
From this morning on my website
http://www.doremifasol.org/news/
i see this message and dont work
Problem retrieving data from Twitter
Twitter error code: 88 – Rate limit exceeded
This website is currently rate-limited by Twitter
Next attempt to get data will be in 7 minutes.
That’s odd. It shouldn’t do that if you’ve not changed any settings – it should just keep showing the old tweets.
How many sites are using your Twitter OAuth credentials?
Also, which types of feed are you using? Favorites? Lists? Search? Or just regular Tweets?
just regular Tweets, now i try to change API
Same problem also with different API KEY
How very odd. You only have two instances of Rotating Tweets that I can see and, assuming the API Key has been accepted and that it isn’t being used for any other site or any other plug-in, this shouldn’t be happening! I’ll see what might be causing it.
this api key is new, and is only for this site… Now is offline another time… Thanks for your plugin and sorry for disturb
I’ve uploaded a development version to http://downloads.wordpress.org/plugin/rotatingtweets.zip that should fix this. Please try it and let me know if it works.
If this doesn’t work, we will need to go to
and set
to
and start looking at the diagnostics.
Hi Martin, thanks very much for Rotating Tweets! It’s working out really well for me. I have a couple of questions though I’ve implemented the plugin in a page template, thus:
and I need to know if I till have access to all of the configuration options using that method. I’d like to switch off the tweet source, if possible. I also have activated the ‘sample’ stylesheet, in order to display a blue bird at the left of each tweet, but I’d like that to link to the Twitter feed instead of having a ‘follow’ button.
Are those things possible? Thanks very much
You do. You can put any of the options into a short-code. Indeed, there are more options for short-codes than for widgets!
There’s no easy change to make the blue-bird to the left link to Twitter, I’m afraid.
Thank you for your reply, is there a list of the available options and by what reference they should be referred to within the shortcode?
Sarah. There is at http://wordpress.org/extend/plugins/rotatingtweets/installation/
Happy to help if you have any further questions or if anything is unclear.
Exactly what I was looking for, thank you! I did manage to link the left-side blue bird to the Twitter user too, so everything’s perfect now. Thanks again!
That’s great! (And how did you link the bird? Other people might want to know!)
Of course
It’s prone to breakage with an update to your plugin, but I altered line 1171 of rotatingtweets.php
and then I renamed yourstyle_sample.css to yourstyle.css and edited it:
min-height: 36px;
}
div.rotatingtweets_format_0 p.rtw_meta {
padding-left: 38px;
}
then added:
float: left;
margin-right: 6px;
}
All done
Correction to my previous; I altered line 1171 of rotatingtweets.php. Apologies
Adjusted accordingly.
Are you using it in a shortcode or a widget? Happy to code this permanently in as a shortcode option.
As per my OP, I’m using it as a shortcode within my template file, thus:
With the options I now know how to use, I have:
Try the latest development version and:
Martin,
I just recently installed the plugin though it is not rotating. I checked other comments to filter out the issue though I had no success. Plus, I am not receiving any error messages.
There’s some guidance at http://wordpress.org/extend/plugins/rotatingtweets/faq/
In your case, the problem is that your Infolinks plug-in uses some non-standard code to install a second copy of jQuery – which breaks all the jQuery instructions that happen before that point.
There’s an instruction on the Infolinks settings page that lets you ‘Use site jQuery’. Select that and everything should start working properly.
Thank you Martin
It worked like a charm. Thanks for the guidance link.
Hi Martin,
thanks a lot for this nice PlugIn. Installed it and it works perfect.
There is on feature I would like to see: autoexpand the enclosed images of a tweet.
Again – thank you very much!
Detlef, Cologne, Germany
Nice idea. I’ll put some thought into how I might do it!
Martin
Hi Martin,
Great plug in. Does the widget cache tweets, so that it only fetches new tweets once every X minutes, or does it fetch tweets each time a user opens a page?
Yes it does. Tweets are only fetched every two minutes…
Thanks Martin. Is it possible to change this frequency to a longer time period in order to reduce the API calls?
It is. Change line 764 from
to:
or whatever else you fancy.
The normal ‘rate-limit’ for the calls that Rotating Tweets mostly uses -
lists/statuses
search/tweets
application/rate_limit_status
- are pretty generous – 180 every 15 minutes per set of API credentials. Only
is more restricted – with 15 every 15 minutes. You can see more at https://dev.twitter.com/docs/rate-limiting/1.1
It does also call
(15 every 15 minutes) – but only once a day!
Martin
Found it, I assume I change
$cache_delay = 900;
to
$cache_delay = X;
Sorry, $cache_delay = 120;