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”
[…] que me dio permiso, el resultado es Twitter for WordPress, mi primer plugin para el WordPress […]
[…] Tenéis más información (en inglés) en la página del plugin. […]
[…] Twitter for WordPress displays yours latest tweets in your WordPress blog. (No Ratings Yet) Loading … Sphere: Related Content […]
[…] Twitter for WordPress displays yours latest tweets in your WordPress blog. […]
[…] Twitter for WordPress – Rick’s HideOut […]
[…] something that would also update my Twitter account at the same time, meaning I could then use a Twitter plugin for WordPress to parse my status to my blog as well. (I recently cobbled together something using MagpieRSS but […]
[…] Twitter for WordPress – Twitter for WordPress displays yours latest tweets in your WordPress blog. […]
[…] para WordPress 1.23 e Twitter para WordPress são dois plugins que permitirão integrar sua conta Twitter ou Pownce ao seu […]
[…] Visit […]
[…] Visit […]
[…] Twitter for WordPress – Another plugin that creates a widget for you. […]
[…] Otra cosa de la que me preocupé fue en encontrar un plugin para mi blog que me permitiera mostrar en uno de mis paneles laterales, mediante un widget facil de configurar, lo último que publico en Twitter. Habían como 6 opciones disponibles, sin mucha diferencia entre ellos en realidad, pero finalmente me quedé con Twitter for WordPress. […]
[…] Twitter for WordPress para mostrar el último mensaje de twitter. […]
[…] Web oficial: Twitter for WordPress […]
[…] Twitter for WordPress – plug in that displays my twitter feed in the sidebar. Twitter is an amazingly useful site for keeping your presence updated…you can also link it to your facebook page, so that stays in sync. […]
[…] Twitter for WordPress – Rick’s HideOut (tags: blog plugin twitter wordpress) […]
[…] Added/customized some more widgets (AddThis, ShareThis, Twitter for WordPress). […]
[…] 1 – Twitter for WordPress – Rick’s HideOut […]
[…] langer Suche ist auch endlich ein vernünftiges Plugin für WordPress gefunden worden. Nach kleinen Anpassungen sind nur meine Twitter-Einträge in der […]
[…] genommen habe. Wie man in der Seitenleiste sieht, ist da doch noch ein Twitter-Feed. Gepowert von Twitter for WordPress — eines der einfachsten Plugins. Leider mit eben diesem Umlautdefekt, der anscheinend aber […]
[…] Twitter for WordPress […]
[…] Twitter […]
[…] your latest played tracks from last.fm, one for displaying your bookmarks from del.icio.us, one for displaying your latest twitters and finally one for displaying your latest flickr […]
[…] Twitter for WordPress – Rick’s HideOut Twitter ötüşmelerini wp de gösterebilenebilen bir şey. basit ağrılık getirmez. […]
[…] Twitter for WordPress – Rick’s HideOut Twitter ötüşmelerini wp de gösterebilenebilen bir şey. basit ağrılık getirmez. […]
[…] Twitter for WordPress 1.9 » Ricardo González (url) Displays your public Twitter messages for all to read. Based on Pownce for WordPress by Cavemonkey50. […]
[…] Twitter for WordPress – Rick’s HideOut Twitter ötüşmelerini wp de gösterebilenebilen bir şey. basit ağrılık getirmez. […]
[…] einen kleinen Blick auf diesen Blog-Dienst zu werfen. Habe mich also angemeldet, ein entsprechendes Plugin für WordPress gesucht, etwas konfiguriert und […]
[…] Twitter for WordPress […]
[…] Twitter RSS – jujur saja saya kena racun ber-twitter dari Saylow dan Dental, oleh karenanya saya pasang plugin Twitter for WordPress […]
[…] Twitter for WordPress v1.9 NEW! […]
[…] the Twitter for WordPress plugin integration (go to the Website to see how it […]
[…] not to be left behind by technology, I signed up for a Twitter account and added a Twitter Widget to my […]
[…] Plugin Twitter for WordPress displays your public tweets for all to read in your WordPress blog. Based on Pownce for WordPress […]
[…] […]
[…] Twitter For WordPress […]
[…] 21、Twitter for WordPress:把发布于Twitter上的消息显示在自已的Blog上。 […]
[…] Twitter for WordPress plugin. Twitter for WordPress displays yours latest tweets in your WordPress […]
[…] Twitter for WordPress è il plugin rilasciato da Ricardo González (realizzato sulla base di “pownce for wordpress“) che vi permette inserendo una semplice funzione in php nel vostro tema di visualizzare una lista ordinata degli ultimi messaggi lasciati in un account twitter. Andiamo a vedere come implementare questa simpatica funzione per chi è un fanatico del far sapere cosa sta facendo. […]
[…] 21、Twitter for WordPress:把发布于Twitter上的消息显示在自已的Blog上。 […]
[…] 21、Twitter for WordPress:把发布于Twitter上的消息显示在自已的Blog上。 […]
[…] 21、Twitter for WordPress:把发布于Twitter上的消息显示在自已的Blog上。 […]
[…] 21、Twitter for WordPress:把发布于Twitter上的消息显示在自已的Blog上。 […]
[…] 21、Twitter for WordPress:把发布于Twitter上的消息显示在自已的Blog上。 […]
[…] Twitter for WordPress—displays your latest public Twitter message on your blog. […]
[…] Twitter for WordPress […]
[…] 2008-07-22 20:53:42 · Reply · View bazscourfield: Currently Browsing: http://rick.jinlabs.com/code/twitter/ Found a simple twitter plugin for wordpress – I’ll see how it goes 2008-07-22 20:38:09 […]
[…] Twitter for WordPress Displays your public Twitter messages for all to read. Based on Pownce for WordPress. […]
[…] Twitter for WordPress […]
[…] a sitemaps.org accessible XML sitemap to your site which makes Google trawling that much better. Twitter for WordPress – Another sidebar plugin, shows the most recent 5 posts from my Twitter account. WordPress […]