Thomas Fuchs
Hi, I'm Thomas Fuchs. I'm the author of the script.aculo.us user interface JavaScript library, a member of the Prototype core team and a Ruby on Rails core alumnus.
You're using my JavaScript work every day, even if you're not aware of it!
   Need corporate training or want me to speak at your conference? Contact me!

How to add the official Tweet Button to WordPress

August 12th, 2010

I use WordPress, and I use Twitter, so here’s how to add the awesome new offical Tweet Button to your WordPress blog:

Inside your Main Index template (index.php), add the first line inside the posts loops (above/below/whereever you want it!). You can add additional parameters, and don’t forget to change the data-via attribute!

Then, add the script line at the end of your page (for example in the footer!)—you only need to include the script tag once!

That’s it, cute little Tweet Buttons like the one right below this article (try it out!).