Hello Friends, one of you have posted requirement for feedburner subscriber counter for blog. I have write article for you – How to display feedburner subscriber count in wordpress blog.
Have you ever been to a site that is not using Feedburner button and is still showing subscriber count? Well they are probably using the trick we are about to share. Most designers use this trick to have custom styling and avoid the annoying feedburner button.
Simply copy and paste this code anywhere you like most likely sidebar.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php $url="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=your-feedburner-id"; //get cool feedburner count $ch = curl_init(); //Initialize the Curl session curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //Set curl to return the data instead of printing it to the browser. curl_setopt($ch, CURLOPT_URL, $url); //Set the URL $data = curl_exec($ch); //Execute the fetch //Close the connection curl_close($ch); $xml = new SimpleXMLElement($data); $fb = $xml->feed->entry['circulation']; echo "Feedburner Counter: ".$fb; ?>