Title: Twitter API Shortcodes
Author: rgeyer
Published: <strong>2010 年 12 月 13 日</strong>
Last modified: 2012 年 6 月 6 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/twitter-api-shortcodes.svg)

# Twitter API Shortcodes

 作者：[rgeyer](https://profiles.wordpress.org/rgeyer/)

[下载](https://downloads.wordpress.org/plugin/twitter-api-shortcodes.zip)

 * [详情](https://cn.wordpress.org/plugins/twitter-api-shortcodes/#description)
 * [评价](https://cn.wordpress.org/plugins/twitter-api-shortcodes/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/twitter-api-shortcodes/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/twitter-api-shortcodes/#developers)

 [支持](https://wordpress.org/support/plugin/twitter-api-shortcodes/)

## 描述

Twitter API Shortcodes (TAS for short) is currently in Alpha, and should not be 
considered at all stable! With that said
 please provide any feedback so we can 
make things better!

TAS allows you to put single tweets or entire twitter searches into your posts and
pages using shortcodes. The tweets and searches
 are displayed in HTML markup, so
the become “part” of your site, which is good for SEO.

The generated markup can be customized by putting a tweet.tpl (smarty template) 
file into your theme directory. This also means that
 theme authors can support 
this plugin directly.

Tweet templates assume that each tweet is in some block with the class ‘status’ (
preferably a div like so

<

div class=”status”>), and that in that block, there is a block for images with the
class ‘images’ (preferably a div like so

<

div class=”images”>)

All single tweets are cached in your local wordpress database, making performance
ultra fast and reducing the number of requests
 necessary to the Twitter API.

Twitter searches can also be cached, allowing you to keep a history of that particular
search. This is useful if you want to
 tweet about a particular event with a hash
tag, then display all of your tweets for that event on a page, or in a post even
after those tweets fall out of the twitter search index.

### TODO

This is a list of things which currently are not yet working (hey it’s an alpha 
version)
 * Avatar updates

## 屏幕截图

[⌊TinyMCE editor integration makes it easy to add the shortcodes⌉⌊TinyMCE editor
integration makes it easy to add the shortcodes⌉[

TinyMCE editor integration makes it easy to add the shortcodes

[⌊A post with some shortcodes in it⌉⌊A post with some shortcodes in it⌉[

A post with some shortcodes in it

[⌊The shortcodes rendered in a post⌉⌊The shortcodes rendered in a post⌉[

The shortcodes rendered in a post

## 安装

Twitter API Shortcodes depends upon the Smarty PHP templating engine. Since we’re
good little boys and girls, we won’t include the library with the plugin, so you’ll
have to go get it yourself! But don’t worry, it’s not hard simply go to;

http://www.smarty.net/download.php

And grab the latest stable version. Twitter API Shortcodes was built using version
2.6.26, but it’s probably safe to assume that any 2.6.x version of Smarty will do.

Once you’ve got the latest version, extract the zip, or tar.gz file, and copy the
contents of the “libs” directory to /wp-content/twitter-api-shortcodes/libs/smarty/

**Update 0.0.3Alpha** From version 0.0.3Alpha of TAS onward Smarty 3.0.x is supported
too, but be sure you’re running PHP5 before you try Smarty 3!

## 常见问题

TODO

## 评价

此插件暂无评价。

## 贡献者及开发者

「Twitter API Shortcodes」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ rgeyer ](https://profiles.wordpress.org/rgeyer/)

[帮助将「Twitter API Shortcodes」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/twitter-api-shortcodes)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/twitter-api-shortcodes/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/twitter-api-shortcodes/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/twitter-api-shortcodes/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/twitter-api-shortcodes/)。

## 更新日志

#### 0.0.3Alpha

 * The “Why Authenticate” dialog can be reopened after being dismissed
 * Updated to support Smarty 3.0.x

#### 0.0.2Alpha

 * Changes to metadata files (like this readme) and getting a feel for the WordPress
   submission process

#### 0.0.1Alpha

 * Initial Alpha release, seeking input from brave users

## 额外信息

 *  版本 **0.0.3Alpha**
 *  最后更新：**14 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 2.9 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/twitter-api-shortcodes/)
 * 标签
 * [api](https://cn.wordpress.org/plugins/tags/api/)[search](https://cn.wordpress.org/plugins/tags/search/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)[twitter](https://cn.wordpress.org/plugins/tags/twitter/)
 *  [高级视图](https://cn.wordpress.org/plugins/twitter-api-shortcodes/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/twitter-api-shortcodes/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/twitter-api-shortcodes/reviews/)

## 贡献者

 *   [ rgeyer ](https://profiles.wordpress.org/rgeyer/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/twitter-api-shortcodes/)