Follow us on Facebook

Show Number of Feedburner Subscribers in Blogger and Wordpress


Using feedburner to burn rss feeds of your blog ? you must show number of feedburner subscribers in your blog to attract and impress your readers. Blogger or wordpress, whatever your blogging platform is, you can display feedburner subscribers count in both easily. As Wordpress is an open source blogging platform thats why it provides more reliability and variety while adding new functions. Feedburner, officially have option to show number of feed subscribers in your blog using their code. That code will show a box (chicklet) as shown in below picture. You can use that code in blogger to show subscribers count. However, if you are using Wordpress, you can show text-based subscriber count which will allow you to design that number count as you want. Follow Below given tips to do so !

How to Show Number of Feed Subscribers in Blogspot/Wordpress Blog ?

  • Go to Your Feedburner account
  • Click on "Publicize" option
  • Now, click and activate "FeedCount" option.
  • After activation, feedburner will give you a code. Copy that Code.
  • For Blogger Users: Go to blogger account, click on "Design", then "Add a Gadget", select "Javascrip/HTML" and paste the code and Save it.
  • For Wordpress Users: Go to your wordpress dashboard, click on "Widgets" add a "Text" widget and paste that code in it then save it !
  • Thats it !



How to Show Number of Feedburner Subscribers in Plain text with Wordpress ?

  •  First of All, activate "Awareness API". 
  • To activate, Go to your Feedburner account, Click on "Publicize" option, then click on "Awareness API" and finally click on "Activate"
  • Copy paste following code in your template file, Dont forget to replace feedburner-id with your original feedburner ID.

//get cool feedburner count 
$whaturl="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=feedburner-id"; 

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

  • Paste below given code anywhere you want and it’ll display a Feedburner subscriber count in text.
echo $fb;
  • Thats it !

No comments:

Post a Comment

About

Followers

Like Us

Labels

Donate us For Furture