There are many ways to skin a cat (no insult intended to you cats or cat-lovers) and it seems just as many ways to tweet a blog post. I like this tip from WpRecipes as it gives more control to the author as far as where the TWEET button appears, and whether to include it or not on a post. It is a little more ’surgical’ than the Tweet This! button at the very bottom of every post. So I have made the switch — at least until some other, better idea comes along!
I love these little short function bits of code that seem to do so much. For me this is one of the things that makes WordPress such a cool, flexible tool. I like the compact form of the button, and so added this line to the head of the code:
<script type="text/javascript"> tweetmeme_style = "compact"; </script> then next <script etc.
WordPress tip: Create a Tweetmeme “Retweeet” shortcode
Tweetmeme is a popular service that allow you to display “Retweet” button on your blog posts. Even if the code is easy to integrate on your single.php file, it can be very cool to create a shortcode that you can insert anywhere in your posts.
ADD YOUR COMMENT
Comments are moderated.
Randall Rode's online home for thoughts, notes, and experiments with a wide range of technology topics. Visit the about page for info on my recent projects and professional background. I welcome your comments!