Display twitter follower count
Do you want to display your twitter count as text, so it blends in with your new custom theme?
First create a new file – twitter.php and paste in the following code:
<?php
$tw = get_option(“twitterfollowerscount”);
if ($tw['lastcheck'] < ( mktime() – 3600 ) )
{
$xml=file_get_contents(‘http://twitter.com/users/show.xml?screen_name=YOURTWITTERID’);
if (preg_match(‘/followers_count>(.*)</’,$xml,$match)!=0) {
$tw['count'] = $match[1];
}
$tw['lastcheck'] = mktime();
update_option(“twitterfollowerscount”,$tw);
}
echo $tw['count'];
?>
Make sure to replace YOURTWITTERID with your twitter name.
Then simply include the file where you want to display this feature:
<?php include(“twitter.php”); ?>

photo credit: clevercupcakes
WordPress support
Wordpress Themes & plugins
WordPress Books
- Teach Yourself Visually WordPress
- Blogging with Word Press ,WordPress is a free web based software program.
- City Blogging: A Guide to Local SEO Reviews
- WordPress 2.7 Complete
- WordPress Blog Set-Up Made Easy
- WordPress 3.0 jQuery
- WordPress Plugin Confidential + WordPress Theme Confidential Bonus Book
- Using WordPress as a Library Content Management System: A Library Technology Report
- WordPress Auto Content Generator Reviews
- Getting Up And Running With WordPress – “Learn How To Install And Optimize WordPress”
- Earning While Black: A Case for Black Internet Entrepreneurship & Other Folk in this Unprecedented Era of Spawning Opportunities Reviews
- Twitter Traffic Swarm
- The $100k+ Blogging Formula
- Blogging Money Machine: WordPress Mastery & Setup , How to build Massive Traffic
- WordPress 3 Complete







