這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

TweetThis Shortcode

描述

I could not find a simple plugin that enabled me to wrap a portion of text on a shortcode that would enable me to publish a link to automatically tweet the quote. So, we built one. There are not many features to the plugin currently. You can set your Twitter name to always include it in every Tweet and optionally use the Bit.ly API to shorten your URL.

Obtain your credentials from Bit.ly from your Advanced Settings page. If you do not use Bit.ly, the plugin will default to Twitter to shorten the link.

Hashtags can be used within the content or within a variable within the tweetthis shortcode.

Utilizes the Web Intent URL

Usage:

  • [tweetthis]Fantastic shortcode #plugin to automatically populate a tweet![/tweetthis]
  • [tweetthis hashtag=”wordpress”]Fantastic shortcode plugin to automatically populate a tweet![/tweetthis]
  • [tweetthis hashtag=”wordpress plugin”]Fantastic shortcode plugin to automatically populate a tweet![/tweetthis]

You can view the result of this Tweet on my TweetThis Shortcode article.

Built by DK New Media, visit the Marketing Technology Blog to keep up on this plugin and other marketing tools to help you grow your online presence!

螢幕截圖

  • View of the shortcode and output link created.
  • View of a report section with the posts and Bit.ly reporting links.

安裝

  1. Activate the plugin through the ‘Plugins’ menu in WordPress
  2. Go to Settings - TweetThis Shortcode and enter your Twitter handle and Bit.ly credentials.

常見問題

Installation Instructions
  1. Activate the plugin through the ‘Plugins’ menu in WordPress
  2. Go to Settings - TweetThis Shortcode and enter your Twitter handle and Bit.ly credentials.
How can I automatically add my Twitter Handle?

Just go to Settings - TweetThis Shortcode and enter your Twitter handle.

Does this plugin allow use of other shorteners?

Not currently, but we are looking forward to expand its capabilities.

Why is some of the content not being displayed?

If your content, hashtags, twitter user and URL exceed 280 characters, Twitter will clip off content to ensure it fits.

評價

閱讀全部1個評價

貢獻者及開發者

“TweetThis Shortcode” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 TweetThis Shortcode 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.8.0

  • Now supporting the 280 character limit with Twitter.

1.7.0

  • Corrected a bug where tags were stripped from the HTML content that is displayed.

1.6.0

  • Added a section with your latest shortened links using Bit.ly and a link to open the link in Bit.ly reporting.

1.5.0

  • Saved the Bit.ly link as a meta field for the post. This reduces the chances that the Bit.ly API rate limit is exceeded. Each time the shortcode is executed, it checks to see if the Bit.ly link already exists.

1.4.1

  • Added support for a hashtag in the output tweet

1.4.0

  • Added filter so unpublished posts do not use the Bit.ly API

1.3.2

  • Modified URL inclusion over to Web Intent querystring variable

1.3.1

  • Corrected URL encoding

1.3.0

  • Corrected URL inclusion logic to Tweet

1.2.9

  • Enhanced logic for populating text in Tweet URL

1.2.8

  • Bug fix and optimized logic for populating text in Tweet

1.2.7

  • Bug fix for populating text in Tweet

1.2.6

  • Bug fix for populating text in Tweet

1.2.5

  • Updated trimming logic for Tweet length

1.2.4

  • Corrected via query variable

1.2.3

  • Corrected cutoff calculation

1.2.2

  • Adjusting cutoff logic. Added Twitter Intent API query variables for via, hashtags and url shortening

1.2.1

  • Adjusting cutoff logic

1.2.0

  • If the tweet exceeded the length limit of Twitter, it would generate a blank page on Twitter. The plugin now cuts off the content to accommodate

1.1.1

  • Simplified URL encoding

1.1.0

  • Simplified URL encoding

1.0.9

  • Simplified URL encoding

1.0.8

  • Corrected URL encoding

1.0.7

  • Corrected URL encoding

1.0.6

  • Corrected URL encoding

1.0.5

  • Corrected URL encoding

1.0.4

  • Corrected URL encoding for Twitter App opening on mobile device

1.0.3

  • Updated documentation

1.0.2

  • Updated text domain

1.0.1

  • Updated documentation

1.0.0

  • Initial Release