Se volete mostrare per esteso il conteggio del vostro feedburner sul vostro blog WordPress, semplicemente inserite questo codice nel file relativo del vostro tema dove volete che esso compaia, ad esempio il filesidebar.php:
1 2 3 4 5 6 7 8 9 10 11 |
<?php $fburl="https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=<strong>ISERISCI-QUI-LA-URL-DEL-TUO-FEED</strong>"; $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $fburl); $stored = curl_exec($ch); curl_close($ch); $grid = new SimpleXMLElement($stored); $rsscount = $grid->feed->entry['circulation']; echo $rsscount; ?> |
pixolo ads