Title: WP-TwitterSearch
Author: fleeting
Published: <strong>2009 年 5 月 2 日</strong>
Last modified: 2009 年 10 月 5 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/wp-twittersearch.svg)

# WP-TwitterSearch

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

[下载](https://downloads.wordpress.org/plugin/wp-twittersearch.1.6.2.zip)

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

 [支持](https://wordpress.org/support/plugin/wp-twittersearch/)

## 描述

Displays the latest results based on a twitter search. Options include setting multiple
search terms, excluding terms and limiting tweets shown. Use the sidebar widget,`
<?php wp_twittersearch_feed(); ?>` in your template or shortcode in your posts/pages:[
wpts terms=twittersearch limit=5 lang=en]

 * This plugin requires PHP5. Contact your host if your unsure what version you 
   have or if your stuck on PHP4.

### Future Plans

 1. Add the remaining Twitter Advanced Search options
 2. Allow for multiple widgets each with its own options
 3. Location based search (input a zip code and distance)
 4. Add a button to the Visual Editor to add a shortcode
 5. Display results from a username and tags from a post
 6. Cache the result for a period of time?
 7. Should the tweets display in an unordered list? divs/spans? Should you be able 
    to choose?

## 屏幕截图

 * [[
 * WP-TwitterSearch Options Page
 * [[
 * WP-TwitterSearch Widget Options

## 安装

Installing WP-TwitterSearch is as easy as any other plugin.

 1. Upload `WP-TwitterSearch` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Add the WP-TwitterSearch Widget, place `<?php wp_twittersearch_feed(); ?>` in your
    template, or use the shortcode in posts/pages: [wpts terms=twittersearch limit=
    5 lang=en]
 4. See the TwitterSearch menu for options.

## 常见问题

### I get this error: Fatal error: Call to undefined function: simplexml_load_file()

WP-TwitterSearch requires PHP5 and that error means your using PHP4. I have no plans
to make it work with PHP4. You can contact your host for more info about your server
supporting PHP5.

### Where is the widget?

As of v1.1 you can now use the sidebar widget to display the twittersearch feed.
This is currently limited to one widget and can have its own search terms and limit.
The next release will support multiple widgets with independent options.

### How do I display my latest tweet?

There are a ton of great plugins that display your tweets, there was no need to 
create another. This plugin is for search.twitter.com only.

### Do I have to provide credit when using the plugin?

Nope, you are free to use it however you like no credit needed. However, if you 
wish to provide a link back to this plugin there is an option to enable credit. 
This defaults to no, but if switched to yes a ‘powered by’ will show up below the
plugin on your site. Again, this is default to no.

### Does it work on WordPress version x.x?

Honestly, I have no clue. I have tested it on version 2.7+ and 2.8. I don’t have
installs of anything before 2.7 so it could work before that. I also don’t plan 
to test or make it work on older versions if it doesn’t. For security alone you 
should always be using the latest version.

### I have another question!

Good, you can either email me at james.fleeting[at]gmail.com or post in the wordpress
forums. I’m always browsing around.

## 评价

此插件暂无评价。

## 贡献者及开发者

「WP-TwitterSearch」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「WP-TwitterSearch」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-twittersearch)

### 对开发感兴趣吗?

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

## 更新日志

#### v1.6.2

 * Released: 10/5/2009
 * Fixed if Display Name is empty (bug fix)

#### v1.6.1

 * Released: 9/18/2009
 * Fixed fatal error on template tag
 * Other Fixes over looked on last changes

#### v1.6

 * Released: 9/18/2009
 * Updated to use WP 2.7+ register_settings
 * Plugin menu is now located under ‘Settings’
 * Removed Top Level Menu and About page
 * The plugin is now a class so it will play well with others

#### v1.5.5

 * Released: 9/8/2009
 * Fixed problem when excluding multiple words
 * Fixed empty xml error if twitter returns nothing
 * Display message instead of xml errors

#### v1.5.4

 * Released: 9/5/2009
 * Added Exclude Search Terms

#### v1.5.3

 * Released: 7/10/2009
 * Fixed Generic Variable Name

#### v1.5.2

 * Released: 7/7/2009
 * Added From This User Option
 * Added Search Phrase Option
 * Fixed Widget Title
 * Updated Screenshots

#### v1.5.1

 * Released: 7/5/2009
 * Fixed all the stuff I messed up over svn

#### v1.5

 * Released: 7/5/2009
 * Added Shortcode Option
 * Added Widget Options
 * Added Avatar Support
 * Added Format Date
 * Added Language Option
 * Added Display Name Option
 * Added Permalink to Date
 * Updated html output

#### v1.2.1

 * Released: 5/27/2009
 * Fixed date format
 * Fixed quotes in tweets
 * Fixed failure when using #hashtag

#### v1.2

 * Released: 5/26/2009
 * Added tweet date
 * Added tweet source

#### v1.1

 * Released: 5/2/2009
 * Added widget support
 * Updated plugin path
 * Added screenshots and icon

#### v1.0

 * Released: 4/30/2009
 * Initial release of the WP-TwitterSearch plugin

## 额外信息

 *  版本 **1.6.2**
 *  最后更新：**17 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **2.8.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-twittersearch/)
 * 标签
 * [search](https://cn.wordpress.org/plugins/tags/search/)[twitter](https://cn.wordpress.org/plugins/tags/twitter/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-twittersearch/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/wp-twittersearch/reviews/#new-post)

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

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/wp-twittersearch/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://paperkilledrock.com/projects)