Adding “Digg this” link to WordPress in one line

Digg


<a href="http://digg.com/submit?phase=2&url=<?php echo urlencode(get_permalink()) ?>">Digg this</a>

That’s it. This seems to work in at least versions 1.5 and 2.0.

Most of this is from an article on Pierre Far’s ekstreme.com. I just put in the WordPress-specific stuff.

He has a nice Javascript bookmarklet that can be dragged to the bookmark bar to digg any site you visit:
Digg this

The bad thing about the bookmarklet is that if you are just reading on the main page, it won’t point to the specific story’s permanent link.
So be sure to click down into the story before using the bookmarklet.

Published by

rae

Mac developer

3 thoughts on “Adding “Digg this” link to WordPress in one line”

  1. Iain and I are on Digg. I am “clith”. Let me know if you’re on Digg too. I only have one friend there, and the site seems to work better with more “friends”. Jeff K, are you on Digg? Harald? Bueller?

  2. I like digg, but I’m not on it. By the way, I was going to make a tech tok article of this, but maybe i’ll just say it quickly: When looking for cool things to buy or a good restaurant, most people look for recommendations from friends, and when that can only provide a little information, then there’s research on the net. I wanted to list methods followed to find neat things. There’s “sort by price — highest to lowest”, on many sites, but when it comes right down to it, aside from my kids, no one is interested in what I’ve found, so the methods I used to find them probably aren’t of much help.

    I don’t know where the average fellow on the street looks for something interesting to do or get, but invariably, whether its the camera or the scope in a park or simply a magazine I’m reading on an airplane, someone somewhere has to play troll.

  3. Well, in a fit of Digg-mania, I’ve added a list of stories I “dugg” to the sidebar on the right with the title of Reid’s Diggs. Let me know what you think, and if you are on Digg too, we could set up a “Tech Tok” digg user we can share..

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

This site uses Akismet to reduce spam. Learn how your comment data is processed.