How To Embed a ReTweet Button on Each Blog Post in WordPress

tweetmemeThe idea behind this is simple. Everyone know how quick twitter is reaching the top of social media web. Twitter is a great source of traffic particularly if you have a good number of followers. Tweetmeme is a digg like website where user can submit stories through twitter. If you need some quick hits from twitter, I recommend you to add a tweetmeme button on each of your blog posts like I did here. (If you like this post, please don’t forget to retweet it)

Add this code at the end of the functions.php file in your theme to embed a retweet button. If you want to know how to automatically tweet your blog posts read our post on How to automatically tweet your blog post

function tweetmeme($content) {
$code =    '<div class="alignleft">
<script src="http://tweetmeme.com/i/scripts/button.js" type="text/javascript"></script></div>
';
if (is_single()) {
return $code.$content;
} else {
return $content;
}
}

add_filter('the_content','tweetmeme');

Related posts:

  1. How to automatically tweet your blog post
  2. Tweet My Post: Tweet and Twitter your blog posts
  3. How to integrate a “Digg This” Button in a WordPress Blog’s index.php
  4. How to Insert content after each post in WordPress
  5. 5 Useful WordPress Hacks for Better Themes


The author is a small business owner himself specialising in Web Development. He runs Insight Studios which offers specialized Web Development, SEO Services and PPC Management for Small Business and SME thus ensuring growth and prosperity using the power of social media.

Share This Post

Related Articles

Leave a Reply

© 2012 MyGeekPal. All rights reserved. Site Admin · Entries RSS · Comments RSS
Designed by Insight Studios