Everybody blogging everybody using Twitter for Microbloging tools. On this tips, I will show you how to display your total twitter followers on your sidebar or whatever and displaying as text. All need to do is add little bit code on your header.php or footer.php or sidebar.php files. and done.
Please remember to make sure that you change WPTricksNet to your username. To Display Total Twitter Followers as Text, you need to write this code below
<?php
$tw = get_option("twitterfollowerscount");
if ($tw['lastcheck'] < ( mktime() – 3600 ) )
{
$xml=file_get_contents('http://twitter.com/users/show.xml?screen_name=WPTricksNet');
if (preg_match('/followers_count>(.*)</',$xml,$match)!=0) {
$tw['count'] = $match[1];
}
$tw['lastcheck'] = mktime();
update_option("twitterfollowerscount",$tw);
}
echo $tw['count'];
?>
Thanks for WP Recipes for share this code, we got this nice tips via WP Beginner



what a very useful information
It’s not working – Parse error: syntax error, unexpected T_STRING…
Pingback: 5 Ways To Display Your Twitter Followers Counter With jQuery
Thank you very much for sharing this awesome trick