Digg Integration in WordPress

September 15th, 2008

Geez, I was just having some real problems integrating the Digg badge onto the website. The main issue was that the Digg count was not showing up on my badge once the story was submitted to Digg. As well, if you clicked the Digg badge, once the story was already submitted, it would create a new submission. Doh! We don’t want to be duplicating Digg submissions. Anyhow, I found a quick code snippet over at weblog.bosslogic.com that fixes the problem.

Here’s the Code Snippet to paste into your template:

<script type=”text/javascript”>
digg_url = ‘<?php the_permalink() ?>’;
digg_title = ‘<?php the_title(); ?>’;
digg_window = ‘new’;
</script>
<script src=”http://digg.com/tools/diggthis.js” type=”text/javascript”></script>
Print This Post Print This Post

Theme Forest

Share this post

  • Twitter
  • Facebook
  • Delicious

3 Comments on “Digg Integration in WordPress”

Ateeq

but what if we wanted a “digg this” icon which is small in size because some times the big one just doesn’t look good.

October 26, 2008 » 12:15 am

admin

Hey Ateeq, check out this link for a bunch of digg buttons and links:

http://digg.com/tools/buttons

October 26, 2008 » 1:27 pm

Ateeq

thanks mate ;)

October 27, 2008 » 9:55 am

Comments