Wednesday, July 15, 2009

Twitter + Wordpress Ultimate Integration

Here's how I integrated my Twitter status updates into my Wordpress blog. I wanted to load all of my old, archived tweets as "Weekly Digest" combined posts, but I didn't want those digests to show up on my home-page, and I didn't want those digests to show up in my RSS feed. I wanted all of the digest tweets to be accessible via the new Tweets category that I just set up.

Here's what I did:

  1. Create a new category to hold your new tweets. I created the Tweets category.

  2. Download, install and activate the Lifestream Wordpress Plugin. I pulled straight from the Subversion repository with the command (from the wp-content/plugins directory):
    svn co http://svn.wp-plugins.org/lifestream/trunk lifestream

  3. Add a new "Twitter" feed to the Lifestream plugin. This will get you the most recent 20 tweets, which was not what I wanted. An earlier version of the plugin could download all archived tweets, so I downgraded to version 0.99.4 with the command (from the lifestream directory):
    svn sw http://svn.wp-plugins.org/lifestream/tags/0.99.4

  4. Re-add the Twitter feed to Lifestream, which should give you all (or, at least most) of your archived tweets.

  5. Unfortunately, Lifestream does not set up Weekly digest posts for all the existing events/tweets that it loaded. So, I had to hack on lifestream.php to do that. If there's interest in the comments, I will post my diffs here. Let me know!

  6. I ended up with 42 weekly digest posts being created. Unfortunately, they all showed up on my blog home page, as well as in the RSS feed. Not what I wanted.

  7. Download, install and activate the Ultimate Category Excluder Wordpress plugin.

  8. Configure the Category Exclusion plugin to exclude the Tweets category from the Main Page and from the Feeds.


And, that's all there is to it.

Your Main Page and Feeds stay clean, but your Tweets (and any other feed/stream that you want to include) will get archived with your blog.

7 comments:

  1. Twitter is very addictive. I like Twitter more than blogging. the messages are short and straight to the point.

    ReplyDelete
  2. i just love Twittering compared to blogging. i was a blog addict and now i am a Twitter addict.

    ReplyDelete
  3. Twitter is the newest craze today. i tweet at least 5 times a day on my friends just to keep them informed about my whereabouts. I still keep my personal blog though.

    ReplyDelete
  4. Thanks for the great post. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.
    juegos friv | juegos kizi | friv | friv 3

    ReplyDelete
  5. Really unbelievable, is not as easy as you can see, the posts difficulty and challenge waiting for you and that's the main difficulties that make us interesting.
    unblocked games, friv 2

    ReplyDelete
  6. Information that might work, thank you very much.
    cargames

    ReplyDelete
  7. Наверх мій, як весело дитини дитина. Включити онлайн 2017 року новий.
    Juegos De Yoob | Y8 | Juegos De Twizl | Kizi

    ReplyDelete