Category Archives: php

Display number of facebook fans in wordpress template

Ever want to display your facebook fans in a WordPress template without a plugin? I found a very simple code to do that. <?php $page_id = “YOUR PAGE-ID”; $xml = @simplexml_load_file(“”.$page_id.””) or die (“a lot”); $fans = $xml->page->fan_count; echo $fans; … Continue reading


Posted in php, Web Development, Wordpress | Tagged , , , | Leave a comment