In this weeks web design video tutorial, I will be showing you a plugin we have created for WordPress called ‘WP Author’s Tweets’. This plugin is best suited for PHP5, but will still work in PHP4.
What this plugin does is it allows you to add a Twitter username to each individual Author on your WordPress blog. You can also add a number which related to how many latest tweets you want to show. Using two simple lines of code you can echo out a ‘follow me’ button and your latest tweets.
The code to do this is as follows:
<?php echo get_followme(); // this shows the follow me button <?php echo getLatestTweetWP(); // this shows your latest tweets
As long as you have entered either a username and latest tweet count for Author’s or entered a default entry, you can add the above code on your single.php. The reason behind adding the code to your single.php is that when a particular blog author publishes a post, their specific twitter information will be shown underneath their blog post. If using the default settings then you can echo the code anywhere on your blog.
It really is as simple as that to use. We’re currently working on an update for the plugin to allow you to wrap the latest tweets in your own custom HTML.
Download the plugin here.
If you have any questions, comments or problems then please leave them below!



