Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

Display Feedburner Subscriber Count as Text in WordPress

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
Display Feedburner Subscriber Count as Text in WordPress

You probably have seen blogs that are displaying FeedBurner Subscriber count as text instead of that annoying chicklet. The ability to display the subscriber count gives you a lot of control over styling and make the count work with your design. Therefore in this article we will share a way you can display FeedBurner subscriber count as text in WordPress.

First you would need to paste this code in the template file of your choice where you want to display the text for example sidebar.php. Be sure to change your FeedBurner ID. It is the name you have after the url so wpbeginner for our site.

    //get cool feedburner count
    $whaturl=" 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 = new SimpleXMLElement($data);
    $fb = $xml->feed->entry['circulation'];
    echo $fb;
    //end get cool feedburner count

You can surround it with the styling you like.

We found this tutorial on Balkhis. The original source 45n5 is no longer there. We have made it into a one step instead of a two step tutorial to make less clutter.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Saiful says:

    Is there any method to get RSS feed count without using feedburner?
    It means direct RSS feed count, which link should be like
    Please advise.

  2. Deirdre says:

    And what if you do NOT want the feed count displayed?

    • Editorial Staff says:

      well then don’t follow this tutorial…

      • Deirdre says:

        I find all of the information on WPB very very helpful and use it regularly to answer any questions I have. WPB has been a lifesaver to me :)

        I just wasn’t sure there was a tutorial on how to remove it.

  3. Hari says:

    Thank’s i will try it to my site

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.