Sometimes we need two or more re-tweet buttons on a single page specially in those cases where article size is longer than normal. To get a re-tweet button on a post, You can use Tweetmeme or other WordPress plugin but that will show the button of one format either compact or large only. In this post, you can see two different re-tweet buttons; one is at the start of article and then other one is at bottom. This really helps in getting more tweets for an article.
To get more re-tweet buttons, you can either choose manual installation of re-tweet button for each of them or you can get one button thru plugin and others thru manual installation. Here I am assuming that you have got one re-tweet button using Tweetmeme WordPress Plugin. Below is the code to get another re-tweet button from Tweetmeme itself. Since both are from Tweetmeme, they will show the re-tweet numbers similar to each other.
Code For Manual Installation Of Tweetmeme Button:
<div class=”tweetmeme_button”> <script type="text/javascript">tweetmeme_style = 'compact'; tweetmeme_url = '<?php the_permalink(); ?>'; </script> <script type="text/javascript" src=" http://tweetmeme.com/i/scripts/button.js"></ script> </div>
Now your blog post is having more than one option for tweet and you will definitely get benefitted in that way. You can also install the buttons of different sizes by doing it manually. In this case, you don’t need any plugin to do that.
To get the compact button, use above mentioned code. And to get the large button, you can use the below mentioned code where the only difference is the “tweetmeme_style”. To get the large buttons, you don’t need to specify any style, default is large.
Code to get large button for re-tweet,
<div class=”tweetmeme_button”> <script type="text/javascript"> tweetmeme_url = '<?php the_permalink(); ?>'; </script> <script type="text/javascript" src=" http://tweetmeme.com/i/scripts/button.js"></ script> </div>
You can also specify the URL shortening service by adding a piece of code as below:
<div class=”tweetmeme_button”> <script type="text/javascript">tweetmeme_service = 'bit.ly'; tweetmeme_url = '<?php the_permalink(); ?>'; </script> <script type="text/javascript" src=" http://tweetmeme.com/i/scripts/button.js"></ script> </div>
Please let us know if you have any other trick to do the same.