Add your own digg this! in your wordpress blog

I just move out from blogger to WordPress. One of the key reason why I select wordpress as my blog software is WordPress have tons of plugins, and the other one is I can move my blog from another hosting company to another one with ease, because wordpress I think is the standard in blogging.

One of my favorite plugin is Related Post at http://www.w-a-s-a-b-i.com, where it will returns a list of the related entries based on active/passive keyword matches. Works wonderfully at my blog, Love it.

I needed a plugin so my reader can save my current post in their del.icio.us or submit it to popular articles directories like Digg, Netscape or Stumble Upon. After searched for days and tried several plugins, I have not satisfied. So, I create my own code (by studied several WordPress blogs) and then modified my own theme file, then add my code in my wp loop (in my case index.php), just above of the end of a post.

This code will add link to save current post into del.icio.us, and submit it to articles directory like Digg, Stumble Upon and Netscape.

<!– The Code start here–><p>
<!– The Code to create link to del.icio.us, digg, Netscape’s and stumble upon –>
<!– Create by Budi Febrianto at http://www.indomino.net/blog –>
<!– This link will save your post in del.icio.us –>
<a href=”http://del.icio.us/post?v=4&partner=fb&url=<?php the_permalink() ?>&title=<?php the_title(); ?>”> Save to del.icio.us</a> |
<!– This link will submit your article to Stumble Upon–>
<a href=”http://www.stumbleupon.com/submit?url=<?php the_permalink()?>&title=<?php the_title(); ?>”>Stumble It!</a> |
<!– This link will submit your article to netscape–>
<a href=”http://www.netscape.com/submit/?U=<?php the_permalink()?>/&T=<?php the_title(); ?>&sBy=feedflare”>Submit to Netscape</a> |
<!– And finally will submit your article to Digg –>
<a href=”http://digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title(); ?>”> Digg This! </a>
<!– The Code end here–></p>

This code works in my WordPress blog, but I have not tested in another blog. Fell free to copy the code in your own blog. If you like it and find it useful, please create a backlink to my site 🙂

1 thought on “Add your own digg this! in your wordpress blog

Leave a Reply