We all are using the feedburner button in wordpress sites. To showing the feedburner subscriber count use the following code.
Just copy paste the following code in your sidebar.php file(This file you will find in your template folder.)
<?php
//You need to change the uri parameter to your website name
$whaturl=”http://api.feedburner.com/awareness/1.0/GetFeedData?uri=wordpressapi/ZoqV”;
//Initialize the Curl for using the feedburner api
$wordpressapi = curl_init();
//Set curl to return the data instead of printing it to the browser.
curl_setopt($wordpressapi, CURLOPT_RETURNTRANSFER, 1);
//Set the URL
curl_setopt($wordpressapi, CURLOPT_URL, $whaturl);
//fetching data
$data = curl_exec($wordpressapi);
//Closing connection
curl_close($wordpressapi);
$xml = new SimpleXMLElement($data);
$fbcount = $xml->feed->entry['circulation'];
echo $fbcount;
//end get cool feedburner count
?>
Echo $fbcount will print the feed Subscriber count.



