Title: Twitter Tags
Author: Eldon McGuinness
Published: <strong>2013 年 10 月 4 日</strong>
Last modified: 2014 年 1 月 28 日

---

搜索插件

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

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

# Twitter Tags

 作者：[Eldon McGuinness](https://profiles.wordpress.org/elmcguinness/)

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

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

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

## 描述

### Twitter Hashtags Syntax

In the body of your post use the [twitter_hashtag] shortcode to create a hashtag
link to the twitter site that will open in its own window. This is great for directing
people to a trending topic on twitter.

### Twitter Usertags Syntax

In the body of your post use the [twitter_user] shortcode to create a usertag link
to the twitter site that will open in its own window. This is great for directing
people to a specific person’s twitter feed.

### Attributes

The shortcode does allow for two attributes to be passed to it:

 * A CSS class tag
 * An alias to pass to the twitter site

#### Class

Want to give the shortcode text a particular look n’ feel? If so you can specify
a class name for the link in question by specifying the class attribute.

    ```
    #!shortcode
    [twitter_hashtag class="custom_class"]Some Tag[/twitter_hashtag]
    [twitter_user class="custom_class"]Some User[/twitter_user]
    ```

#### Alias

Since a large number of hash tags and usernames will either not make lexical sense
or are just plain jibberish, the shortcode contents can be seperated from the actual
tag in question.

    ```
    #!shortcode
    [twitter_hashtag alias="crazyname42"]Crazy Name[/twitter_hashtag]
    [twitter_user alias="someodduser"]John Smith[/twitter_user]
    ```

As noted above, the twitter tag will appear as [Crazy Name](http://twitter.com/search?1=%23crazyname42),
but the hashtag searched fro on twitter will be #crazyname42.
 The usertag will 
be shown as [John Smith](http://twitter.com/someodduser), while the name searched
for on twitter will be @someodduser.

### Removal of White Spaces

It should be noted that white spaces in the shortcode contents–everything between
the opening and closing tags–will be removed automatically when creating the hashtag
or usertag, but it will remain in the post as written.

    ```
    #!shortcode
    [twitter_hashtag]New Widget[/twitter_hashtag]
    [twitter_user]John Smith[/twitter_user]
    ```

In your post, New Widget will remain as typed, but the hashtag will be compressed
to NewWidget.

In your post, John Smith will remain as typed, but the usertag will be compressed
to JohnSmith.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Eldon McGuinness ](https://profiles.wordpress.org/elmcguinness/)

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

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.2.1**
 *  最后更新：**13 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **3.6.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/twitter-tags/)
 * 标签
 * [shortcodes](https://cn.wordpress.org/plugins/tags/shortcodes/)[twitter](https://cn.wordpress.org/plugins/tags/twitter/)
 *  [高级视图](https://cn.wordpress.org/plugins/twitter-tags/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/twitter-tags/reviews/#new-post)

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

## 贡献者

 *   [ Eldon McGuinness ](https://profiles.wordpress.org/elmcguinness/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://progressivethink.in/donate)