wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Add Tweetmeme button to your post with shortcode

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you add the Tweetmeme button to any location within your post.

snippet :  PHPcopy
function tweetmeme(){
  return '<div class="tweetmeme"><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div>';
}
add_shortcode('tweetmeme', 'tweetmeme');
snippet :  SHORTCODEcopy
[Tweetmeme]

Did you like this post? If so please share it with your friends. Thanks!