WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Twitter News Feed

Collects Tweets based on specific Twitter usernames and hashtags and then adds them as posts

Requirements

  1. Twitter News Feed 1.0 requires PHP5
  2. Simplepie - http://simplepie.org/ (This is included in the plugin)

Usage

There are two ways to display Tweets on your blog.

Firstly, if you choose not to store your Tweets as post you can use the following template tag "tnf_get_news_as_array()" in your templates

<?php $tweets = tnf_get_news_as_array(); ?>
<ul>
<?php foreach($tweets as $tweet): ?>
<li><?php echo $tweet["description_filtered"]." - ".date("l jS \of F Y - H:i:s"); ?></li>
<?php endforeach; ?>
</ul>

The available array elements are as follows:

  • user_id => (string e.g 1 - needs to be cast to int if required)
  • date => (Y-m-d H:i:s)
  • link => (string e.g http://twitter.com/keirwhitaker/status/2784830708)
  • id => (string e.g 2784830708 - the actual status id of the tweet)
  • description => (string - The unfiltered tweet which will include the #tag(s))
  • description_filtered => (string - The filtered tweet)
  • twitter_username_link => (String - href of the Twitter username)

The other option is to use WordPress to pull out posts from the category specified in the Twitter News Feed admin panel.

See http://codex.wordpress.org/Template_Tags/get_posts for examples.

Requires: 2.8 or higher
Compatible up to: 2.8.2
Last Updated: 2009-12-22
Downloads: 15,771

Ratings

4 stars
4.7 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

0,1,0
100,1,1
0,1,0