Displaying Your Average RSS readers


Sponsored Links






Cats Who Blog write nice code, the function of this code is How to display your average feed and readers. I’ll re share this code for you and we hope you like it.

Displaying Your RSS readers - Diana vickers

Displaying Your RSS readers - Diana vickers

Before we started to code, we need to prepare text editor such as Coda, TextMate, Text Edit, Notepad++ or whatever you like. Then open your functions.php in your themes files and write down.

function get_average_readers($feed_id,$interval = 7){
	$today = date('Y-m-d', strtotime("now"));
	$ago = date('Y-m-d', strtotime("-".$interval." days"));
	$feed_url="https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=".$feed_id."&dates=".$ago.",".$today;
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_URL, $feed_url);
	$data = curl_exec($ch);
	curl_close($ch);
	$xml = new SimpleXMLElement($data);
	$fb = $xml->feed->entry['circulation'];

	$nb = 0;
	foreach($xml->feed->children() as $circ){
		$nb += $circ['circulation'];
	}

	return round($nb/$interval);
}

After your finished re write this code, you need to call parameter with this code, Pass your Feedburner feed id as a parameter:

<?php
$nb = get_average_readers('WPTricks');
echo "We currently have ".$nb." RSS readers";
?>

Thanks for WP Recipes to share it, now we can display more better RSS Readers stats

Photos via Egotastic

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

How To Publish The Feed Later

This is another nice tweak for your WordPress, with Publish The Feed later, you can schedule it and make it more easy to your reader. or do you have another plan? I got this tips from WP Engineer, Like we … Read More

How To Display Total FeedBurner Reader in Text

FeedBurner is easy method to display our total reader. And using a little PHP code we can display our total FeedBurner Reader in Text in WordPress is easily. To implemented this code is easy, all need to do write down … Read More

How To Add Content to the End of Each RSS Post

RSS is simple ways to tell our readers what news on our sie, WordPress has designed with many feed format. And Now let's me show you how to tweak RSS Feed with extra function we can added content on our … Read More

News - Free software downloads and software reviews - CNET

Average User Rating: Be the first to window or without one, optional displaying a clock. You can bookmark your favorite RSS More Popular Newsreaders & RSS Readers read more

Source: http://download.cnet.com/News/3000-2164_4-75205974.html

Beginning to Style Your RSS Feed - Monday By Noon

hasn’t quite filtered down to your average user quite yet. RSS As far as I’ve seen, very few RSS readers possible — it isn\’t called Really Simple Syndication read more

Source: http://mondaybynoon.com/20060814/beginning-to-style-your-rss-feed/

Top Knitting Blogs With Public RSS Stats | knittsings

blog with average the majority of your fans keep in touch via feed readers, consider displaying small orange RSS square is great to have on your site for readers to read more

Source: http://knittsings.com/top-knitting-blogs-rss/

News - RSS Reader software , News - RSS Reader software free download

or without one, displaying or not a clock, and more (just check out the screenshots PaGE.) - You can bookmark your favorite RSS E-mail & News News Readers News - RSS read more

Source: http://www.topdownloads.net/index/software/view.php?id=233832

Compare: RSS readers - How Tos - Digital Life - theage.com.au

Compare: RSS readers RSS, or really simple syndication, is a but sites that support RSS are very common. Most browsers make it easy by displaying read more

Source: http://www.theage.com.au/news/digital-life/how-tos/compare-rss-readers/2008/10/28/1224956035233.html


One Response to Displaying Your Average RSS readers

  1. I think now it is easy for me to displaying average rss readers # word press.Thanks for the tips.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>