Wednesday, July 12, 2006

How to Make Digg’s New Integration Tool Work With WordPress Posts

Author: Nick
Category: Money
Topics: ,

digg wordpress integration

Wow, I just started using the darn thing and I’ve already started getting e-mails asking how I managed to get the new Digg integration tool to work in a WordPress post. Forgive me for the pause in funny financial talk as I explain how I did it in this post.

You’ll need two things:

  1. A Digg story URL like this one: http://digg.com/tech_deals/No_Fax_Machine_Send_ Faxes_Online_Cheap_or_Free!
  2. Your favorite WordPress editor open. For the love of all that is holy, turn off that fancy editor they have on by default.

Now, wherever you wish the button to appear in the post, include this check of code:

wordpress digg integration code

Link to a file with the code in text format.

Simply replace DIGG STORY URL GOES HERE with that link from step one. Those comment tags and extra slashes are required to get in-post Javascript working. The div aligns the button to the left of your text; otherwise the button appears on a separate line and looks all ugly.

Note that this seems to only get the button to display in Firefox. Then again, I haven’t see the button working on any site in any other browser yet. Please correct me if I’m wrong.

Now you can stick Digg buttons on every blog post you ever make! Let the wave of blog spam be unleashed! (I’ll be surfing it to the front page.)

Note (July 21, 2006): Some of you may have noticed that I’ve since removed these Digg buttons. I did so partly because they were getting old and were still getting pushes, but also because the darn things don’t XHTML validate and there’s nothing about it I can do on my end. For shame, Digg!

No comments yet.

Sorry, the comment form is closed at this time.