Feedburner RSS Subscriber Count: How To Display It In Plain Text

StevenWordPress

If you made your blog setup the right way, there is a good chance you are using Feedburner for your RSS Feed.

Feedburner allows you to display your RSS subscriber count through the use of a chicklet. However, if you want to better integrate your RSS subscriber count in your website design, you might want to display it in plain text.

To display your Feedburner RSS subscriber’s count in plain text on your WordPress blog, you just need to paste the following code in the desired place of your theme (for example sidebar.php).

<?php
$fburl="https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=YourURL";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $fburl);
$stored = curl_exec($ch);
curl_close($ch);
$grid = new SimpleXMLElement($stored);
$rsscount = $grid->feed->entry['circulation'];
echo $rsscount;
?>

For this code to work, don’t forget to replace YourURL with your own Feedburner nice-name.

Learn how I made $33,543 online in the past 12 months.

Simply input your best email below to get started.

Learn how I made $33,543 online in the past 12 months.

Simply input your best email below to get started.

No thanks, I have enough money