Saturday, May 29, 2010

Add a Tweetmeme retweet button to your WordPress post

Adding a Tweetmeme retweet button is a smart idea. It allows readers to easily retweet your blog post to their Twitter followers. It is easy to add the button to your WordPress blog using the Shortcode API functions.

A button with a retweet button is ready to retweet. The button with 2 tweets / tweeted (shown) is an examplewhere the post has been retweeted from that page.

To use the Tweetmeme retweet button, add the following to your post:

tweetmeme source=Your_Twitter_Account only_single=false

Be sure the statement is between square brackets [ ] so it will be read as a Shortcode. Also insert the Twitter name that you want the retweet to reference. It will show as @Your_Twitter_Account after the RT. Some instructions show as “Your_Twitter_Account” or ‘Your_Twitter_Account’ but the single or double quotes are redundant because the function expects a string. If that is confusing, just ignore because it’s not really important to getting your button displayed.

The expression “only_single=false” will make the retweet button show on your main blog page and each individual post. If you leave this out, the retweet will only show on the individual post page.

You can add this statement on the Visual or HTML page. Since it is a Shortcode API not HTML code, it will be visible on the Visual page but will not show on your post if the syntex is correct. Correct syntax is always important so make sure to cradle in the square brackets.

If you want to know more about Shortcode API, start with: http://codex.wordpress.org/Shortcode_API. If you want to know more about functions http://en.wikipedia.org/wiki/Subroutine is a good start.

If you have any questions, I’ll try to answer just leave a comment or email me at mary@lansystems.com.

For more computer support, business strategy and technology tips, visit: http://www.lansystems.com/resources.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.