How to Create a Tweetmeme “Retweeet” Shortcode


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Just paste the function below into your functions.php file.
  2.  
  3. function tweetmeme(){
  4. return '<div class="tweetmeme"><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div>';
  5. }
  6. add_shortcode('tweet', 'tweetmeme');

URL: http://www.wprecipes.com/wordpress-tip-create-a-tweetmeme-retweeet-shortcode

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.