=== Fetch Tweets === Contributors: Michael Uno, miunosoft Donate link: http://en.michaeluno.jp/donate Tags: twitter, tweets, tweet, widget, widgets, post, posts, page, pages, custom post type, API, Twitter API, oAuth, shortcode, sidebar, plugin Requires at least: 3.2 Tested up to: 3.5.2 Stable tag: 1.0.0.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Fetches and display tweets from twitter.com with the Twitter API. == Description ==
fetchTweets()
* **id** - the ID of the rule set. This cannot be used with the `ids`, `tag`, and `tags` parameters. e.g.
`[fetch_tweets id="123"]`
` 123 ) ); ?>`
* **ids** - the IDs of the rule set separated by commas. This cannot be used with the `id`, `tag`, and `tags` parameters. e.g.
`[fetch_tweets ids="123, 234, 345"]`
` 123, 234, 345 ) ); ?>`
* **tag** - the tag associated with the rule sets. This cannot be used with the `id`, `ids`, and `tag` parameters. e.g.
`[fetch_tweets tag="WordPress"]`
` 'WordPress' ) ); ?>`
* **tags** - the tags associated with the rule sets. This cannot be used with the `id`, `ids`, and `tags` parameters. e.g.
`[fetch_tweets tags="WordPress, developer"]`
` 'WordPress, developer' ) ); ?>`
* **operator** - the database query operator that works with the *tag* and *tags* parameters. Either **AND**, **NOT IN**, or **IN** can be used. If this parameter is not set, AND will be used as the default value. e.g.
`[fetch_tweets tags="WordPress, PHP, JavaScript" operator="IN" ]`
` 'WordPress, PHP, JavaScript', 'operator' => 'IN' ) ); ?>`
`[fetch_tweets tags="developer" operator="NOT IN" ]`
` 'developer', 'operator' => 'NOT IN' ) ); ?>`
* **count** - the maximum number of tweets to display. e.g.
`[fetch_tweets ids="456, 567" count="10" ]`
` 456, 567, 'count' => 10 ) ); ?>`
* **avatar_size** - the size of the profile image in pixel. e.g.
`[fetch_tweets id="678" count="8" avatar_size="96" ]`
` 678, 'count' => 8, 'avatar_size' => 96 ) ); ?>`
== Frequently Asked Questions ==
= Where can I get the API keys? =
First you need to create an application to access the Twitter API [here](https://dev.twitter.com/apps). Then create *consumer key*, *consumer secret*, *access token*, and *access token secret*. Without these, you won't be able to fetch tweets.
= How can I create my own template file? =
Edit the file named *show_tweets.php* in the *template* directory of the plugin. Create a directory named *fetch-tweets* under the current theme directory and put the modified file there. If you use, for instance, Twenty Twelve, place the file as follows:
`.../wp-content/themes/twentytwelve/fetch-tweets/show_tweets.php`
== Screenshots ==
1. ***Tweets Displayed in Page and Sidebar***
2. ***Fetching Rule List***
3. ***Widget Settings***
== Changelog ==
= 1.0.0.2 - 07/22/2013 =
* Added the *operator* parameter for the *tag* and *tags* parameters that specifies the use of *AND*, *IN*, or *NOT IN* for the database query.
* Added the *tags* parameter that enables to fetch tweets with multiple tags.
* Added a widget that fetches tweets by tag.
* Fixed a bug that profile images get lost with the *tag* parameter since 1.0.0.1.
* Fixed a bug that caused a warning in the background, "PHP Warning: in_array(): Wrong datatype for second argument in ...\wp-content\plugins\fetch-tweets\class\FetchTweets_WidgetByID_.php on line 76"
= 1.0.0.1 - 07/21/2013 =
* Added the *avater_size* parameter for the *fetchTweets()* function and the shortcode.
* Added the ability to specify the profile image size as well as the visibility of the image.
* Fixed a bug that caused a warning in the background, "PHP Notice: Undefined index: title in ...\wp-admin\includes\meta-boxes.php on line 352"
* Fixed a bug that some transients did not get renewed.
* Tweaked the precision of converting urls, hashtags, and user mentions to the hyper-links.
= 1.0.0 - 07/20/2013 =
* Initial Release.