WordPress feedburner subscriber count display in text235

Feed Burner
Author: InfoBeep - September 7, 2017 | subject to copyright

FeedBurner in short, is an add-on service that can track readers who subscribe to your blog using RSS.

FeedBurner in some ways can be helpful for you as it shows the number of followers to your site but since it appears as annoying chicklet you may want to change it to text format. So, here is how you can do it.

First of all, you need to open your template file and paste the code below: You may choose to display the code in sidebar.

//get cool feedburner count
$whaturl="https://api.feedburner.com/awareness/1.0/GetFeedData?uri=your 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
$xml= newSimpleXMLElement($data);
$fb= $xml->feed->entry['circulation'];
//end get cool feedburner count

After pasting, save your template file and you are done.

Image Credit: https://85ideas.com