Descrizione:

Applicando questa funzione in un qualsiasi punto del tuo template, sarai in grado di mostrare il numero di sottoscrittori feedburner in formato testuale, che, ovviamente potrai modificare per esempio creando uno stile personalizzato.

Codice:

function wpc_feedburner_subsc(){
        $feed_url = 'http://feeds.feedburner.com/iltuofeed';
        $count = get_transient('feed_count');
        if ($count != false) return $count;
	$count = 0;
        $data  = wp_remote_get('http://feedburner.google.com/api/awareness/1.0/GetFeedData?uri='.$feed_url.'');
   if (is_wp_error($data)) {
        return 'error';
   }else{
	$body = wp_remote_retrieve_body($data);
	$xml = new SimpleXMLElement($body);
	$status = $xml->attributes();
	if ($status == 'ok') {
		$count = $xml->feed->entry->attributes()->circulation;
	} else {
		$count = 300; // fallback number
	}
   }
	set_transient('feed_count', $count, 60*60*24); // 24 hour cache
	echo $count;
}