Twitter for WordPress displays yours latest tweets in your WordPress blog.
Features
- Simply
- Customizable
- Widget ready
- Uses WordPress resources (no extra files needed)
- No options page (yes, it’s a feature)
- Detects URLs, e-mail address and @username replies
- Multiple widgets (Thanks to Michael Feichtinger)
Installation
Drop the twitter-for-wordpress folder into /wp-content/plugins/ and activate the plug in.
Usage
If you use WordPress widgets, just drag the widget into your sidebar and configure.
If widgets aren’t your thing, use the following code to display your public Twitter messages:
twitter_messages('username');
Note: Your tweets must be unprotected (i.e. in the public timeline)
Twitter for WordPress also has several configurable options. Here’s what you can configure:
twitter_messages('username', [msgs], [list], [timestamp], ['link'], [hyperlinks], [twitter_users], [encode_utf8]);
- username: your twitter username
- msgs: number of tweets to show (max. 20, limited by Twitter)
- list: show tweets in a unordered list
- timestamp: show a relative timestamp
- linked: the link options
- ‘all’: puts a link to the tweet status in all the tweet (the old-school way). This option disables the link discover features.
- false or ”: no link at all to the tweet status
- true or ‘something’: enable the link to the tweet status. You can customize the text.
- hyperlinks: show URLs as clickable links
- twitter_users: show @username replies as clickable links
- encode_utf8:turn it on if you have encoding problems
Only username is required. The other parameters will take this default values:
twitter_messages('', 1, false, true, '#', true, true, false);
This is: 1 tweet, not in a list, with timestamps, with a # link to each tweet, with URLs and @username replies displayed as clickable links.
So, if I wanted to show my last 3 messages, not in a list, with timestamps, with a Go link, no links and encode_utf8, I would use the following:
twitter_messages('username', 3, false, true, 'Go', false, false, true);
Customization
The plug in provides the following CSS classes:
- ul.twitter: the main ul (if list is activated)
- li.twitter-item: the ul items (if list is activated)
- p.twitter-message: each one of the paragraphs (if msgs > 1)
- .twitter-timestamp: the timestamp span class
- a.twitter-link: the tweet link class
- a.twitter-user: the @username reply link class
Live Demo
twitter_messages('twittvigo', 5, true, true, '>>', true, true, false);
>’, true, true, false); ?>
Download
Mods
- Twinkle + Twitter by Michael Tyson. Adds Twinkle image support.
Version History
1.9.7 – 2009/08/27
- Link discover regexp bug fixed (thanks to Webmancers)
1.9.6 – 2009/07/10
- Improved link discover regexp (thanks to Allen Shaw)
1.9.5 – 2009/07/07
- Several undocumented changes (mostly bugs acrosss different WordPress versions)
- Added #trendingtopics link support (thanks to Michael Voigt)
1.9 – 2008/04/08
- Now using human_time_diff() instead own function: better performance, less code and automagically i18n!
1.8.2 – 2008/04/01
- I messed it up the encoding. Now works.
1.8 – 2008/03/31
- Added encode_utf8 option in order to (hopefully) fix the encoding issues.
1.7 – 2008/01/03
- Multi-Widget Feature. Thanks to Michael Feichtinger
1.6.1 – 2007/12/27
- Due Hanok‘s request, added a linked option to make all tweet a link to the tweet status.
1.6 – 2007/12/27
- Now the plugin also detects the @username replies and automagically transform them in links to the username twitter page.
- Better URL discover method.
1.5 – 2007/12/26
- Modified the linked option to make it more flexible and configurable. Now the link is at the tweet’s end, and you can configure it (even not display it).
1.4 – 2007/12/24
- Added ‘hyperlink recognizer’.
1.3.2 – 2007/09/08
- Fixed some HTML encoding issues. Props to Dave.
1.3.1 – 2007/08/22
- Better feed handling. Now only the username is required.
1.3 – 2007/08/22
- New relative date function
1.2 – 2007/08/21
- Rearranged CSS classes
1.1.2 – 2007/08/20
- Fixed a widget typo
1.1.1 – 2007/08/16
- Fixed widgets bug and added widget options (Thanks to Neil MacLean)
1.1 – 2007/08/15
- Added the link option (suggested by manuls)
1.0 – 2007/08/12
- Initial Release
Credits
- Ronald Heft – The plugin is highly based in his Pownce for WordPress, so the major part of the credits goes to him.
- Michael Feichtinger – Contributed the multi-widget feature code
Contact
Suggestion, fixes, rants, congratulations, gifts et al to rick[at]jinlabs.com or by my contact page.
Code
Maybe you could be interested in my other plugins: Code
691 replies on “Twitter for WordPress”
[…] Found a nice plugin to display my tweets on the blog. Check out Twitter for WordPress. This was written by Gustav Bertram. Posted on Wednesday, August 6, 2008, at 15:50. Filed under […]
[…] What else? I have installed two nice new WP plugins. If you want to check them out, you can get them from here and here. […]
[…] Isso pode ser feito de forma fácil usando um plugin para o WordPress. No meu caso, eu uso o Twitter for WordPress, e seu uso é muito fácil: Você instala o plugin e o ativa, e adiciona um Widget dele pelo […]
[…] Twitter for WordPress Displays your public Twitter messages for all to read. […]
[…] it’d be a good time to switch my blog theme. I’m using the stupidopress theme and the twitter for wordpress plugin. The glossy twitter icon is from […]
[…] course I researched how twitter would interface with wordpress, as I have like 8 posts I haven’t quite managed to get up yet! So just wait to see the new […]
[…] gemacht, und die Seite zum Beispiel mit praktischen Geo-Tags und einer robots.txt ausgestattet. Das Twitter-Plugin mit dem ich arbeite (danke Georg) wirft im Gegensatz zum offiziellen Widget keinen mieserablen Code […]
[…] Twitter for WordPress […]
[…] a WordPress user, there’s very little to do – I’ve modified Ricardo González’s Twitter for WordPress plugin. Download it here: twitter+twinkle.zip . See the extra configuration options to turn it on […]
[…] Twitter for WordPress – Rick’s HideOut (tags: wordpress twitter plugin) […]
[…] Twitter for WordPress – Displays my public Twitter messages […]
[…] harishalkic.de benutze ich außerdem das Plugin Twitter for WordPress, um meine Nachrichten/Tweets in der Sidebar […]
[…] Aqui esta el enlace (despues se me olvida que fue lo que hice) http://rick.jinlabs.com/code/twitter […]
[…] This ofcourse is only the very minimal settings on this plugin, as there are many attributes you can tweak which can be found on the Plugin page here http://rick.jinlabs.com/code/twitter/. […]
[…] Twitter for WordPress displays yours latest tweets in your WordPress blog. […]
[…] 我在哪里都能看到他的足迹… 不过我要告诉你, 最后我选了一款叫Twitter for WordPress的插进加载我的更新, […]
[…] avec l’extension “Twitter or wordpress“, je peux plus facilement afficher mes messages sur le blogue ici que si mes billets étaient […]
[…] have been Flickr Photo Album, Twitter for WordPress, and WordPress.com […]
[…] Actualizo desde el blog. Con un plugin para wordpress que se llama Twitter for WordPress http://rick.jinlabs.com/code/twitter 2008-10-07 22:51:06 · Reply · View freelancejobz: New Freelance Job : : Custom […]
[…] 21、Twitter for WordPress:把发布于Twitter上的消息显示在自已的Blog上。 […]
[…] code from text and other widgets to custom functions and hooks wherever possible. In calling the twitter for WordPress function, the tweets will display, but without the thesis formatting. You can see what I’m talking […]
[…] Found a way to aggregate my tweets on my blog: http://rick.jinlabs.com/code/twitter/ # […]
[…] Twitter for WordPress […]
[…] ist dies alles durch das Twitter for WordPress-Plugin von […]
[…] images linked from Twitter postings, and released a modification to Ricardo González’s Twitter for WordPress plugin which uses […]
[…] 4,Twitter for WordPress […]
[…] Twitter for WordPress by Ricardo González. […]
[…] Twitter for WordPress […]
[…] a ‘Currently Working On’ section which I can update on Twitter with a plugin called Twitter for WordPress developed by Ricardo González (which can be downloaded from WordPress […]
[…] seguida instalei dois plugins para WordPress. Um deles é o Twitter for WordPress para mostrar os meus tweets. O outro foi o Twitter Tools, que embora fosse também fazer isso […]
[…] Twitter for WordPress […]
[…] networking status messages with Ping.fm. My latest Twitter status message is imported via the Twitter for WordPress plugin. I tested quite a few Twitter plugins for WordPress and this was the one I found to actually work […]
[…] Twitter for WordPress — Twitter အတြက္ေပါ့ […]
[…] WordPress blog. Some did not work at all, while others did not work like I expected. I settled on Twitter for WordPress because it is easy to install and […]
[…] Twitter for WordPress 1.9.1 Ricardo González (url) Displays your public Twitter messages for all to read. Based on Pownce for WordPress by Cavemonkey50. […]
[…] Twitter for WordPress […]
[…] Twitter for WordPress – Rick’s HideOut Very basic but unobtrusive way of including your Tweets your WordPress blog. […]
[…] Twitter for WordPress – Rick’s HideOut […]
[…] Twitter for WordPress – Rick’s HideOut Very basic but unobtrusive way of including your Tweets in your WordPress blog. […]
[…] Twitter for WordPress: ce plugin affiche vos n derniers Twits sur votre blog. Hautement configurable! […]
[…] Twitter for WordPress […]
[…] Twitter for WordPress […]
[…] Twitter for WordPress – Rick’s HideOut Very base but unobtrusive way of including your Tweets in your WordPress blog. […]
[…] I have released a new theme titled ‘Absynthe’ under the GPL. I hope you enjoy this one. This theme requires the Last.fm plug-in by Jeroen Smeets (if you don’t have it installed, don’t worry, your site won’t break, it just won’t show the Last.fm stuff) and this theme looks wicked awesome when you use Twitter for WordPress by Ricardo Gonzalez. […]
[…] I have released a new WordPress theme over at Six Revisions titled ‘Annexation’ under the GNU General Public License. This theme, like Absynthe, also utilizes the Last.fm plug-in by Jeroen Smeets and the Twitter for WordPress plugin by Ricardo Gonzalez. […]
[…] Twitter for WordPress – Another plugin that creates a twitter widget. […]
[…] UP-TO-DATE mit dem Twitter-Plugin, siehe rechte […]
[…] rolas que escucho en last.fm, se pueden ver abajo. Y cambie el plugin de Twitter Tools por el de Twitter for WP, creo que se ve mejor, aunque la verdad casi ni utilizo […]
[…] “Twitter for WordPress” eklentisini indirip WordPress’e […]
[…] Bookmarked a link on Delicious. Twitter for WordPress – Rick’s HideOut […]