Submitting your blog posts to Digg.com is a great way to get traffic and gaining new visitors who could turn out to be potential feed subscribers depending on the merit of your content. So adding a small button to encourage the readers to submit your blog post to Digg is only logical.

Kenny Carlile has put together code that will add the Digg Submission button to your WordPress blog posts. Stories already submitted will show how many times they have been dugg and stories not yet submitted will post to the submit story page with information pre-populated (first 350 characters from the post will be pre-populated for first-time submission).
Here is how we have used this code to place the ‘Digg It’ button to the left of posts in single view with the content wrapping around the button:
- Create a file called diggthis.php in your theme’s directory having this code.
- Edit your theme’s style.css and add the following to it:
- Edit your theme’s single.php and include diggthis.php just above the the_content function like so:
.diggLink {
float: left;
margin-bottom: 4px;
margin-right: 10px;
width: 52px;
}
<?php include('diggthis.php'); ?>
<?php the_content('» Read the rest of the entry.. ') ?>
Done.
You can also accomplish this using a plugin called DiggBadger and placing the following above the the_content function, and then styling it to align left:
<?php getDiggBadger(); ?>
Credit: http://www.kennycarlile.net/2007/08/25/add-a-digg-badge-to-wordpress-postspages/
We hope you found this how-to helpful. Please social bookmark this tutorial and help us and others. Thanks in advance.
This post has no comments yet. Why not kick start the discussion?