這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Just A Tweet

外掛說明

Adds a just_a_tweet function and short code that allows you to display only
the most recent Tweet from a Twitter feed.

This came about because I wanted a way to display my most recent tweet in the
header of my site. Looking through dozens of Twitter plugins I couldn’t find
one that just got the most recent tweet without too much extraneous HTML and
also cached the request. This function does both.

For more info, visit Nutt.net or
my Twitter feed.

安裝方式

  1. Upload just-a-tweet to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php just_a_tweet('username'); ?> in your templates

The function just_a_tweet takes up to 4 parameters

$twitterUser – Required – The name of the Twitter user you want to request

$cacheAge – Optional – Number of minutes after which the cache is considered stale. Defaults to 5

$forceRefresh – Optional – If true then the cache is not used, although it is
still filled. Defaults to false

$echo – Optional – Whether the function should also echo out the HTML built. Either
way the HTML is returned. Defaults to true

Using the shortcode

There is also a shortcode just_a_tweet that you can use inside your posts and pages.

[ just_a_tweet twitteruser=yourtwitter ] will pull the most recent tweet from
whatever Twitter account you pass as yourtwitter.

常見問題集

None yet

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Just A Tweet〉的開發相關工作。

參與者

將〈Just A Tweet〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.3.1

  • No real change, just updating to switch to a new site

0.3

  • Switched to using a newer Twitter API call
  • Wasn’t working if latest tweet was a retweet. Would cause an error on the first
    page view and then a JSON error after it was pulled from cache.

0.2

  • Added just_a_tweet short code so you can use this inside a post or page without
    having to enable PHP code.

0.1

  • Initial Release