wordpress snippets last updated   : April 22, 2014
we now have 631 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]

jqsnipp.com | we just launched jquery snippets website