How To Display Feedburner Subscriber Count As Text Instead Of Chicklet

If you are a Feedburner user and don’t like chicklet to display your Feedburner count, this hack might be of your interest. With this simple hack you can display your Feedburner feed count as Text. Hope you like it.

feedburner count


Note: Do take backup of your theme before you try this.

01. In your WordPress Admin panel go to Appearance => Editor.

02. Then choose a file, say sidebar.php from right hand side and add below code in it:

//get cool feedburner count

//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
$xml = new SimpleXMLElement($data);
$fb = $xml->feed->entry['circulation'];
//end get cool feedburner count

And replace feedburner-id with your Feedbuner username. Like for us its tutzone

03. Now place below code where you want to display your Feedburner Count:

echo $fb;

This concludes this simple and useful tutorial. Hope you like it.