Tags: , , ,

WordPress.com Button Integration

WordPress.com has implemented a ‘shortcode‘ which allows you to very easily use our retweet button

To implement the button simply follow the steps below.

  1. Write your post.
  2. At the top of the post (or the position you prefer) insert the shortcode [tweetmeme]
  3. Publish you post

tweetmeme

Furthermore you can alter various settings of the button by extending the shortcode parameters.

If you prefer the compact version of the button you can switch the outlook using the style parameter “compact”.

Example: [tweetmeme style="compact"] – would produce a smaller size TweetMeme button.

You can define your twitter username that will be used in the Retweet message using the source parameter. If you don’t specify one, the default will be “@wordpressdotcom”.

Example: [tweetmeme source="wordpress"] – would produce a message like “RT @wordpress post title – http://shorturl” in Twitter

You can also define the url shortening service that should be used. By default the WordPress internal shortener http://wp.me is used to shorten your urls, but you can also pick any of the following services using the service parameter : ‘wp.me’, ‘bit.ly’, ‘awe.sm’, ‘cli.gs’, ‘digg.com’, ‘is.gd’, ‘tinyurl.com’, ‘tr.im’, ’su.pr’, ‘ow.ly’, ‘lopurls.us’, ‘twurl.nl’

Example: [tweetmeme service="tinyurl.com"] – would create a short url using the tinyurl.com service.

If you already created a short url for your post you can reuse this url providing the alias parameter.

Example: [tweetmeme alias="http://myshorturl.com/abc"] – would produce a message like “RT @tweetmeme post title – http://myshorturl.com/abc” in Twitter

In case you would like to change the style/positioning of the TweetMeme button via the Custom CSS Upgrade you can use the skip_style parameter to prevent additional style parameters to be added to the button. The TweetMeme button is embedded in a div with the css class “tweetmeme-button” and has the css id “tweetmeme-button-post-”.

By default the Button is also added to your RSS feed. If you would like to prevent the static button from showing up in your feeds add hide_in_rss=true as parameter to hide the button in your RSS feed. Please note : it can take a while until the rss feed is updated and your changes are reflected.

In order to keep your blog performance high and 3rd party requests low the buttons are shown only on the single page/post view. If you would like your TweetMeme button also to appear also in category pages or the front page you can use only_single=false as additional parameter to make a button appear not only in single page/post view.

Of course any of these parameters can be combined with each other.

1 Star2 Stars3 Stars4 Stars5 Stars (25 votes, average: 3.60 out of 5)