How To Display Your Feedburner Count And Twitter Followers Without Chicklets

Feedburner offers a great chicklet which allows you to add your subscriber count to your site, and for Twitter you can use a chicklet to display your followers from a service such as

What I’m going to show you today is a method of displaying these counts without actually using a chicklet which will allow you to customise how your stats will be displayed.

We will be using PHP to grab the data you need, then you can style with CSS within your own site, Please backup any files before editing them!


This following code grabs the data from feedburner using the awareness API, replace “YOUR FEED ADDRESS” with your feedburner feed address, e.g. WebM-ag

$url = file_get_contents('
$begin = 'circulation="'; $end = '"';
$page = $url;
$parts = explode($begin,$page);
$page = $parts[1];
$parts = explode($end,$page);
$fbcount = $parts[0];
if($fbcount == '') { $fbcount = '0'; }
echo '<b> '.$fbcount.' </b> Subscribers';

This will echo out the count, e.g. 399  Subscribers.


This code uses the Twitter API and grabs its count from a XML feed, replace “USERNAME” with your Twitter username, e.g. webmagz

$twit = file_get_contents('');
$begin = '<followers_count>'; $end = '</followers_count>';
$page = $twit;
$parts = explode($begin,$page);
$page = $parts[1];
$parts = explode($end,$page);
$tcount = $parts[0];
if($tcount == '') { $tcount = '0'; }
echo '<b> '.$tcount.' </b> Followers';

This will echo out your follower count, e.g. 712  Followers

All Done

That’s pretty much the bare bones code you need to get started, you can of course style it in any way you wish, as it uses PHP your page extension MUST be .php (not .html  etc…) or within WordPress it will work without altering any page extensions.


24 posts | 0 comments

Leave a Reply

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