WordPress.org

Plugin Directory

Latest Tweets

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

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()

Requires: 3.0.1 or higher
Compatible up to: 3.7.7
Last Updated: 2013-12-12
Active Installs: 30+

Ratings

0 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.

100,1,1