How to Display RSS Counter in WordPress blog

How to Display RSS Counter in WordPress blog

Are you boring with those RSS chicklets, I have seen those on many websites and they looks ugly, no matter how you change its color to make it beautiful but it remains ugly.

Here today I will show you Display RSS Counter in WordPress blog, you can use it your own way, display it anywhere you want in your WordPress blog. You can style it and make it beautiful.
Create a new text file and save it in php format and name it feed and then paste the following code in the file and save it. So it will be feed.php
//get cool feedburner count
$whaturl=" Here";

//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

echo $fb;

After pasting these lines to your file we have to add Feedburner user name, so replace the Feed Here with your Feedburner user name on the following line
//get cool feedburner count
$whaturl=" Here";
Then simply add this line of code wher­ever you want the counter to dis­play:
<?php include("feed.php"); ?>
Save your feed.php file to your theme files where you have hosted the blog.


About Me

Ashok Rathod
I am an enthusiasts web designer who love creativity and enjoys experimenting with various techniques in web development. In my free time you'll find me exploring new web technologies, developing cool websites. You can follow me on twitter.