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.

Latest Tweets

Description

Access the latest tweets from anywhere (user timeline, list, followers, etc).

Installation

Once configured using the Twitter API credentials, the default behaviour is to return the tweets from the authenticated user account.

The behaviour can be changed by specifying a method representing an API call, as detailed in the CodeBird docs – https://github.com/jublonet/codebird-php#3-mapping-api-methods-to-codebird-function-calls

When an API call requires parameters, these can be specified in the Parameters field, so e.g.:

Method: lists_statuses
Parameters: slug=my_list_name&owner_screen_name=my_screen_name

Display is left up to you. In your template you can do something like:

<ul>
  <?php foreach (Latest_Tweets::range(1) as $tweet): ?>
    <li>
      <strong>
        <?php echo $tweet->user->name ?>
        <span><a href="http://twitter.com/<?php echo $tweet->user->screen_name ?>"><?php echo $tweet->user->screen_name ?></a></span>
      </strong>
      <p><?php echo Latest_Tweets::highlight($tweet->text) ?></p>
    </li>
  <? endforeach ?>
</ul>

You can also get just one tweet with:

Latest_Tweet::one()

Contributors & Developers

“Latest Tweets” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Latest Tweets” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.