Ever wondered how do people over the internet display feedburner count in Text and style it to match with their Blog theme. It’s quite easy but little tricky. First of all you would have to enable API Awareness in Publicize section at your Feedburner account. Once you have enabled it, it’s just copy/paste of below coding into your theme, and replace your id with your feedburner feed id for which you want to display the count
<?php
//get cool feedburner count
$whaturl=”http://api.feedburner.com/awareness/1.0/GetFeedData?uri=yourid”;
//Initialize the Curl session
$ch = curl_init();
//Set curl to return the data instead of printing it to the browser.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//Set the URL
curl_setopt($ch, CURLOPT_URL, $whaturl);
//Execute the fetch
$data = curl_exec($ch);
//Close the connection
curl_close($ch);
$xml = new SimpleXMLElement($data);
$fb = $xml->feed->entry['circulation'];
//end get cool feedburner count
?>
And once you have put that into your theme, now you only need to put below code anywhere in your theme you wish to display the feed count
<?php echo $fb;?>



