Posting Your Latest Tweet in WordPress
Although I posted yesterday how to add your latest tweet to WordPress without a plugin, I made several changes to the script before I posted it to make it more “generic” and re-usable. Since I’ve changed it quite a bit, I decided to repost it. This new script also autolinks @usernames and #hash tags.
Directions are this easy: set the path of $tw_File with a static, writable file. Set $tw_userid to your Twitter user id. Done.
| Print! | This entry was posted by Adam on February 19, 2009 at 11:48 am, and is filed under PHP, WordPress. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |

[...] Matt Mullenweg of Automattic (the makers of WordPress ). There are two interesting videos Posting Your Latest Tweet in WordPress – firsttube.com 02/19/2009 Although I posted yesterday how to add your latest tweet to WordPress [...]
[WORDPRESS HASHCASH] The comment’s server IP (207.210.215.130) doesn’t match the comment’s URL host IP (207.210.215.134) and so is spam.
Hi. I’m trying to implement this code into my WordPress and having a little trouble. Can you tell me exactly how to “set the path of $tw_File with a static, writable file”?
[...] (2/20/09): I have updated the below code. The new version can be found at “Posting Your Latest Tweet in WordPress“. /* ~~~~ Custom Twitter Bit ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /* ~~~~ Adam S, [...]
John. Make a file yourfilename.html and place it on your server. Note the URL then in the script provided enter your file name where you see this $tw_File for example $tw_File = 'http://www.yourwebsite.com/yourfilename.html'; Then make sure you have the permissions set on that file for reading and writing.
Just curious how I would allow say 5 tweets with this?
Thanks!