Display latest tweets on your WordPress blog or website without a plugin or hard coded php
0 Comments
There are a few plugins and some custom coded php scripts for displaying the latest tweets on your wordpress blog or website. Here’s a more simple solution for adding your latest tweet/s on your blog/website without a plugin or a homegrown solution that requires wordpress php filters in the functions.php of your theme or additional php coding.
This method requires calling a twitter javascript from twitter.com and a simple html unordered list:
1. Call the twitter script by placing this code in your blog’s/site’s footer just before the closing body tag :
Make sure you replace the text “your_twitter_id” with your twitter username and change the number of count=1 option to as many tweets you would like to be displayed. (ex. count=3 will display the latest 3 tweets).
2. Create an empty unordered list and make sure it has the “twitter_update_list” id assigned and voila. It is as simple as that.
Now you can style the list in any way you like.