| 开发者 |
Michael Uno
miunosoft |
|---|---|
| 更新时间 | 2018年9月16日 23:14 |
| 捐献地址: | 去捐款 |
| PHP版本: | 5.2.4 及以上 |
| WordPress版本: | 4.7.3 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
?screen_name=yourscreenamehere to dynamically display tweets.fetch-tweets.php and other files compressed in the zip folder to the /wp-content/plugins/ directory.,[fetch_tweets id="123"]fetchTweets()
tag, q, or screen_name parameter. e.g.[fetch_tweets id="123"]
<?php fetchTweets( array( 'id' => 123 ) ); ?>
In order to set multiple IDs, pass them with commas as the delimiter. e.g.
[fetch_tweets id="123, 234, 345"]
<?php fetchTweets( array( 'id' => '123, 234, 345' ) ); ?>
id, q, or screen_name parameter. e.g.[fetch_tweets tag="WordPress"]
<?php fetchTweets( array( 'tag' => 'WordPress' ) ); ?>
In order to set multiple tags, pass them with commas as the delimiter. e.g.
[fetch_tweets tag="WordPress, developer"]
<?php fetchTweets( array( 'tag' => 'WordPress, developer' ) ); ?>
IN will be used as the default value. For more information about this operator, refer to the Taxonomy Parameter section of Codex. e.g.[fetch_tweets tag="WordPress, PHP, JavaScript" operator="IN" ]
<?php fetchTweets( array( 'tag' => 'WordPress, PHP, JavaScript', 'operator' => 'IN' ) ); ?>
[fetch_tweets tag="developer" operator="NOT IN" ]
<?php fetchTweets( array( 'tag' => 'developer', 'operator' => 'NOT IN' ) ); ?>
id, tag, or screen_name parameter. e.g.[fetch_tweets q="#wordpress" lang="en"]
<?php fetchTweets( array( 'q' => '#wordpress', 'lang' => 'en' ) ); ?>
id, tag, or q parameter. e.g.[fetch_tweets screen_name="WordPress,photomatt"]
<?php fetchTweets( array( 'screen_name' => 'WordPress,photomatt' ) ); ?>
[fetch_tweets id="456, 567" count="10" ]
<?php fetchTweets( array( 'id' => '456, 567', 'count' => 10 ) ); ?>
[fetch_tweets id="678" count="8" avatar_size="96" ]
<?php fetchTweets( array( 'id' => 678, 'count' => 8, 'avatar_size' => 96 ) ); ?>
[fetch_tweets id="678" twitter_media="0" external_media="1" ]
<?php fetchTweets( array( 'id' => 678, twitter_media="0" external_media="1" ) ); ?>
[fetch_tweets get="1" ]
<?php fetchTweets( array( 'get' => true, ) ); ?>
Then access the page that has the shortcode or the page by passing the arguments in the url.
http://your-site.domain/page-slug/?screen_name=miunosoft
http://your-site.domain/page-slug/?q=wordpress
.../wp-content/themes/twentytwelve/fetch-tweets/.
Place the working folder (the copied and renamed one in step 1) in there. The plugin will automatically detect it and the template will be listed in the Template page of the admin page.
Optionally, a template can be added via a plugin. If you do so, add the template directory with the fetch_tweets_filter_template_directories filter hook.
e.g.
`
function FetchTweets_AddSampleTemplateDirPath( $aDirPaths ) {
// Add the template directory to the passed array.
$aDirPaths[] = dirname( FILE ) . DIRECTORY_SEPARATOR . 'sample';
return $aDirPaths;
}
add_filter( 'fetch_tweets_filter_template_directories', 'FetchTweets_AddSampleTemplateDirPath' );
`
An example template is available here.Notice: class-feed.php is <strong>deprecated</strong> since version 4.7.0! Use fetch_feed() instead. in the Extension setting page.Using $this when not in object context when accessing a deprecated method.Twitter template.Cache setting section.Single and Sidebar.Manage Rules page when a template is manually deleted while it is assigned to a rule.Settings action link in plugins.php was linked to the wrong page.Add Rule by List page.declaration of FetchTweets_Template_Settings_Single::validateSettings() should be compatible with ....Sidebar template.Manage Options tab in the setting page.created_at element value of tweet array loaded in templates to be intact.Plain template option.operator argument to IN from AND used when fetching tweets with tags.apply_template_on_no_result argument.Possibly Sensitive Materials option.show_error_on_no_result argument.100%.!important notations from the CSS files of the built-in templates.fetchTweeets() function and the plugin shortcode.fetch-tweets template directory could not be loaded in child themes.Plain and Single templates which appeared in the Twenty Fifteenth theme.init action hook from plugins_loaded.strlen() expects parameter 1 to be string... occured in the fetchTweets() function introduced in v2.4.0.get argument for the shortcode and the PHP function that converts URL query key-values to the shortcode/function parameters.p tags, defined in the templates.Plain template.count option.Single template.p tags as media elements are enclosed in div tags in built-in templates.href attributes did not get escaped.Settings link of plugin templates became not to appear as of v2.3.5.include retweet option is unchecked, the count parameter was not accurately reflected in the search rule type.Template column in the rule listing table.border-radius property to the profile image element in the built-in templates.debug template and added a screen-shot.Include Retweets option value.Include Retweets option for the Search and Home Timeline rule type.Debug template.Invalid argument supplied for foreach() in ...wp-content/plugins/fetch-tweets/include/class/boot/registry/FetchTweets_AutoLoad.php on line 93, which occurred on some servers.Caching Mode option.Warning: Invalid argument supplied for foreach() in ...\wp-content\plugins\fetch-tweets\class\FetchTweets_AdminPage_.php on line 544Strict standards: Declaration of ... should be compatible with ....the_content filter.fetchTweets() function to decide whether the output should be returned or printed.fetchTweets() function to support the screen_name and q parameters.!imporatant declaration for each rule.wp_safe_remote_get was not found.screen_name parameter to the shortcode that displays the tweets by specified Twitter accounts.q parameter to the shortcode that displays the result of Twitter keyword searches.