Add a Digg button to your WordPress website

If you’d like to have a Digg button on your WordPress website all you need to do is load your single.php  file and add the following code in the Loop.

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

If you don’t like the thought of mucking around in your code, you can also download a plugin to take care of it. Before you go getting too popular though, take a look at how to speed up your WordPress website or How to Diggproof your blog.

2 Responses to “Add a Digg button to your WordPress website”

  1. One line, so much potential! haha. :)

  2. cdqodprzxhs says:

    Tr1S22 etthehycfnqo, [url=http://yvqiqsllioee.com/]yvqiqsllioee[/url], [link=http://tqhsypxtpsxw.com/]tqhsypxtpsxw[/link], http://kmmfcbbhegcz.com/

Leave a Reply