How To Display Total Retweets in Text without Plugin


Sponsored Links




Twitter become more popular, now every people and website have twitter account. Using twitter there are unlimited abilites, we can share our favorite post, Retweets others tweets and many more. Today WordPress tutorial will share how to Display Total Retweets in Text without any plugin.

Display Rtweets on WordPress

Display Rtweets on WordPress

All need to do, just re write this code on your single.php or whatever files you’ll put this code. This code pure PHP Script. Please notes, you’ll need to join Backtype to use get an API key, after successfully join , put it in next to $key.

Display Total Retweets in Text without Plugin, Let’s go

<?php

$link = get_permalink($post->ID);
$key = 'Backtype Key';

$url = "http://api.backtype.com/tweetcount.xml?q=$link&amp;amp;key=$key";
$request = new WP_Http;
$result = $request->request( $url );

echo "<span class="result">".$result['body']."</span> tweets";

?>

And done, now you have Total Retweets in Text without Plugin on WordPress easily

Original source here, photos source here

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

Get Your WordPress Posts Tweets & Retweets Count - Theme.fm

the tweets/retweets count from Twitter in plain text that plain text anywhere in your posts or even total section) or display your posts ordered by the number of retweets Read More

Most Wanted 35 Twitter And RSS Plugins For Wordpress

WordPress sidebar widget plugin to easy customize and display of other massive brands, in total Replies and/or Twitter Retweets as comments to your Post; The plugin also Read More

jTweetsAnywhere - jQuery Twitter Widget with @Anywhere support

"jTweetsAnywhere is the best twitter plugin I've Twitter content in the context of your site, without Supports native retweets; Can display extended tweet attributes Read More

WordPress Content Slide plugin: How to stop all of the slideshow

padding:0px;margin:0px; text-align:center; width: Read More

25 Social Media Plugins For WordPress - DeluxeXtreme.com

likes and shares, Google+ and retweets can The background, border and text colors can be customized, too. The plugin hasn’t For each tab, you can display a social Read More


One Response to How To Display Total Retweets in Text without Plugin

  1. Pingback: Tweets that mention How To Display Total Retweets in Text without Plugin # WordPress Tricks & Tips -- Topsy.com

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>