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”
[…] Twitter for WordPress: twetter’daki son mesajlarınızı wordpress blogunuzda görüntüleyebilirsiniz. […]
[…] Twitter for WordPress http://rick.jinlabs.com/code/twitter/One of the best Twitter cross posting plugin. Great way to all the posts end up in one […]
[…] Twitter for WordPress : comme son nom l’indique. Ajoute un widget sur le blog avec ses derniers messages Twitter publiés […]
[…] your WordPress blog. There are two plug-ins that I use for Twitter that I really like. The first is Twitter for WordPress by Ricardo Gonzalez. The Twitter Updates sidebar widget that you can see on the right sidebar of my […]
[…] that updates your status in Twitter everytime you post on your blog. 17. Twitter for WordPress http://rick.jinlabs.com/code/twitter – a wordpress plugin that displays your latest tweets on your blog. 18. Tweet Later […]
[…] Integration von Twitter for WordPress […]
[…] recommended plugins include: Add To Any (social bookmarking), Akismet (spam blocker), Twitter for WordPress (displays Twitter updates) and WordPress Database Backup (create or schedule back ups so you never […]
[…] Using twitter? On the right hand side of easychurchdesign, you might have noticed my latest twitter feed. There are lots of widgets out there that do this, but I’m using Twitter for WordPress. […]
[…] Twitter for WordPress […]
[…] 1. Twitter For WordPress Plugin […]
[…] éppen, azt megjelenítse blogjában. Egy egyszerű plugin kell hozzá, mindössze aminek a neve: Twitter for WordPress. Telepítése rendkívül egyszerű, feltöltjük a plugint, aktiváljuk és beillesztjük ezt a […]
[…] Twitter for WordPress […]
[…] die Funktionen in der Sidebar weitestgehend erhalten geblieben. Zusätzlich habe ich das Plugin Twitter for WordPress integriert, welches das neuesteste Gezwitscher des Werderblogs […]
[…] recently found a bug in the very cool Twitter for WordPress plugin (v.1.9.5), published by Rick over at Rick’s […]
[…] I just noticed that Rick over at Rick’s Hideout, author of the very cool Twitter for WordPress plugin, included my patch for a bug in the link discovery feature. Thanks, […]
[…] im Blog angezeigt haben möchte (siehe ganz oben rechts), der soll sich mal das Plugin “Twitter for WordPress” […]
[…] Twitter for WordPress: Show your latest tweets on your WordPress Blog. […]
[…] Continue reading here: Rick’s HideOut – Twitter for WordPress […]
[…] Twitter for WordPress 版本 1.9.6 | 作者为 Ricardo González | 访问插件主页 […]
[…] interesting thing that I have found is that , if you are using the Twitter for WordPress plug-in, Tracer will also manage the RTs that were made from those […]
[…] Twitter for WordPress […]
[…] このブログで使っているWordPressにTwitterのプラグインがないかと探しましたが、やはり、たくさんありました。何がいいかわからないので、とりあえずTwitter for WordPressをインストールしておきます。 […]
[…] Visit plugin site […]
[…] しかし、メールアドレスだと、Twitter一覧に表示されるリンクがメールアドレスになってしまうのでリンク切れになってしまいます。そこでWordPressに表示するTwitterのつぶやき一覧は、Twitter for WordPressプラグインで表示するようにしました。 タグ: Twitter, WordPress, プラグイン […]
[…] Twitter for WordPress – Rick’s HideOut Very basic but unobtrusive way of including your Tweets in your WordPress blog. […]
[…] Twitter for WordPress: displays latest tweets on your blog. […]
[…] Twitter For WordPress – Shows on […]
[…] 7- Twitter for WordPress […]
[…] In: WordPress plugins 3 Aug 2009 Go to Source […]
[…] eines ominösen Fehlers deaktivieren musste. Neu dabei ist die Twitter-Integration mittels “Twitter for WordPress” und “Search Everything“. Durch Ersteres seht ihr oben rechts in der Ecke meine […]
[…] Twitter for WordPress – Rick’s HideOut:WPブログにTweetsを表示してくれるシンプルなプラグイン。 […]
[…] Twitter for WordPress by Ricardo González […]
[…] interesting thing that I have found is that , if you are using the Twitter for WordPress plug-in, Tracer will also manage the RTs that were made from those […]
[…] der Haube, wie z.B. die Twitter integrierenden WordPress Plugins “Twittergrid“, “Twitter for WordPress” und vor allem “Tweet This“, durch das ihr von jeder Single-Seite aus den Beitrag […]
[…] Twitter For WordPress Twitter client on blog showing your tweets and mention in professional […]
[…] 在博客首页的右边增加了twitter sidebar,支持多个twitter widget,功能很不错,可以检测出@和Link。把我们两个的twiiter都给放上去了,呵呵。插件的名称是Twitter for WordPress,直接在wordpress里安装的。另外一个优点是,这个插件是通过程序去取twitter的信息,由于我的主机在美国,因此可以正常的显示。有些插件比如Twitter Widget因为使用JSONP,国内的浏览者就会被挡在墙外了。 […]
[…] Twitter for WordPress Twitter for WordPress displays yours latest tweets in your WordPress blog. […]
[…] Twitter for WordPress nutze ich zur Darstellung meiner Tweets in der Seitenleiste. Mir gefällt es besser als “Twitter Tools”, weil es keine eigene Datenbank verwendet, wo die Tweets gespeichert werden. […]
[…] 1. Twitter for WordPress […]
[…] anyone is interested, the feed is accomplished with Ricardo González excellent WordPress plugin, Twitter for WordPress. If you’re looking for a Twitter sidebar plugin I whole heartedly recommend you at least take […]
[…] Twitter for WordPress: Twitter for WordPress displays yours latest tweets in your WordPress blog. The plugin is easily […]
[…] Twitter for WordPress – Displays your most recent twitter comments in your site. Link: Click Here […]
[…] * Twitter para WordPress: Es un widget para los blogs que utilizan WordPress, es muy cómodo y fácil de instalar. […]
[…] werden. Bei WordPress existieren eine Reihe von Plug-Ins, die dies bewerkstelligen, eines davon ist “Twitter for WordPress”, dass ich auch in diesem Blog benutze. Ähnliche “badges” etwa für Facebook und andere […]
[…] Twitter for WordPress: Twitter for WordPress displays yours latest tweets in your WordPress blog. The plugin is easily […]
[…] Twitter for WordPress Hiển thị và update những tweets của bạn lên blog WordPress. […]
[…] Rick’s HideOut – Twitter for WordPress rick.jinlabs.com/code/twitter – view page – cached #RSS 2.0 Rick's HideOut » Twitter for WordPress Comments Feed Rick's HideOut — From the page […]
[…] Pagina WordPress: http://wordpress.org/extend/plugins/twitter-for-wordpress/ Pagina oficială: http://rick.jinlabs.com/code/twitter Versiune existentă: […]
[…] Twitter For Wordpress Twitter for WordPress simply displays your latest tweet(s) wherever you wish on your blog. There is no GUI set-up for this plugin, as it is all done in your theme template. The single line of code that I use to display our latest tweet at the bottom right of the main page is <?php twitter_messages('spkitty', 1, true, false, '$lt;img src="/twitter_small.gif" alt="rss" width="18px" height="10px" /$gt;', true, true, false); ?>. This displays the latest tweet from our feed, with no timestamp, with my little bird icon as a link to the tweet, and URLs and users both as click-able links. […]
[…] I only mention this because I’ve added a few feeds to the right-hand column of this page, kinda on a trial basis. Right now, I’ve added Stephen Colbert, Woot.com, Joystiq, GWJ and Giant Bomb (the latter three are gaming-related) to see if it works alright. I’ve only got the top two posts from each feed, but I think I can track up to 20 posts with this particular WordPress plugin. […]