I used to display my latest tweet using PHP code as part of my WordPress theme’s function.php. However that did not work reliably and used to slow down page loading a wee bit. Hence I decided to generate the html code for the latest tweet as a background/cron process and just read the generated data in WordPress. Here’s how I do it.Continue reading

Continuing my attempt to avoid wordpress plugins when possible and hand code the theme to include different functionalities, I looked around for php code snippets so that I could include the twitter anywhere code in my theme – the hovercards, the tweetbox and all that jing-bang. I found it here. I also added the tweetbox in addition to that. Here are the code snippets that you need to include in your theme’s functions.php to get twitter anywhere on your theme. Enjoy!Continue reading

There are lots of plugins in the wordpress plugin repository which can be used to integrate Facebook Like, Google buzz, TweetMeme Retweet etc with wordpress. However none of them provided all three functionalities at the same time or were flexible enough to integrate seamlessly with the theme. Hence I wrote a small php function which can be used to integrate the aforementioned services with any wordpress theme. You can see a live preview at the bottom of this post. Here’s the code:Continue reading