It baffles me why someone would go to the trouble of writing a WordPress plugin but not take the time to write some decent step-by-step documentation for how to install it and make it work. A prime example is a very handy Wordpress plugin for adding a digg button to your post. The plugin is written by Aviran Mordo and can be found here. Take a brief look of the comments and you will see that there are more than a few people having trouble implementing this plugin. I was in the same boat and it took me hours to figure out how this plugin was suppose to be implemented. Since no documentation exist, I am writing this to help these who are having problems installing it. Please note that I can only impart on you my experience and I am in no position to answer any technical questions. Those questions should still be directed to the original author of the plugin. Before I begin, I would like to say thanks to Aviran Mordo for writing this plugin. Let’s hope he implements better directions for those who are not php programmers.
- Download the plugin.
- Upload the plugin to your WordPress plugin folder which is located under wp-content/plugins off your blog’s home folder. I like to put the plugin in a folder called ‘digg’ to keep my plugins organized but you can just put it in the plugin folder.
- Go to the WordPress admin page and activate the plugin under the Plugins tab.
- At this point, I suggest you submit a post to digg for testing. Having the article already dugg makes it easier to confirm if your installation is working.
- I won’t go into how to digg works since you should already know this if you are reading this.
- Find the appropriate single.php file in your blog folder. If you are using themes, you will have multiple single.php files. Each will be located under the theme’s folder which is located under /wp-content/themes. If you have not installed any themes, the file will be located under /wp-content/themes/default. Make sure you edit the correct single.php file. The author refers to this action as putting the code in the Loop. Some themes will make a call from the single.php file to another file (ie: theloop.php). If this is the case, you will see something like include (TEMPLATEPATH . ‘/theloop.php’); in the single.php file. If you are using such a theme, you will have to edit theloop.php file instead. The exact location of where to put the code will vary from theme to theme so you’ll have to experiment but it has to be put inside the loop which is often indicated by comments in the file. There will often be clues to where you can put it. Usually below lines that read ‘title’ and above lines that read ‘footer’. Remember to re-input the changes if you change themes.
- If you want to include the digg this button in WordPress pages files (like this one) in addition to post files, you will need to add the same line of code to the page.php file located in the same folder.
- To edit the single.php or page.php file, use the editor under Design-Theme Editor. Be sure to make a backup first.
- Your first part of your single.php file should look like this:
- The bold text is the additions. Red text are my comments and should not appear in the file. In short, if you want the digg button to appear at the end of the article, enter the code after this section Read more »
- The code you enter will vary depending on what you want to appear. Refer back to the author’s site for examples. I used < ?php digg_this_button(); ?> to create the digg button.
- Time for testing. You cannot test this just by refreshing your blog. You must first go to the article in digg.com and click on the link to your article. Doing this will update your link and the button should now appear in your blog as dugg. If it does not appear, wait a few hours. For some reason, the digg button may not appear right away.

If you did everything right, you should see a digg button at the end of your post like the one you see here. If this article was helpful, feel free to digg it!
Add me to your del.icio.us network.



















nice and useful information thank you
actually i tried and i failed couldnt work it
Thanks for the tutorial, great job!
i tried and it worked
i try it out, but it is not working for me….don know y…
i download the plugin and active it, after that i place the code on my single.php…
[...] you can find english instructions for installing it here http://blog.patyuen.com/lessons/howto_install_diggthis_plugin/ i am actually going to be using it for my blog. see [...]
Thanks for this, the instructions from the developers site are pretty vague to someone new to WP
It works find with 2.7. If you follow the instructions you’ll find that you not only have to digg the post, you have to then go to digg and click the link back to your post in order for the button to show up.
Thanks for the tutorial, great job!
I am not sure this plug is compatible in the latest version of wordpress 2.7. Can anyone confirm it it works or not?
Hey, thanks so much for the fantastic direction. I had no problems with this, once I read through your great little tutorial.
I am, not getting it to work . I have added it to the single.php after the loop but its not coming. The story has one digg too ( i dont know if i did it myself to check ) but still the button is not appearing. can you let me know what possibly is going wrong in my case.
Thank you very much for this article! I found it through Google. Step #12 is what was giving me issues. Thank you for mentioning the necessity of the click-through.
This is a great article! It helped me a hell of a lot, as I was bewildered with the original guide. I have agree with your opinion on people who don’t post decent guides for plug-ins.
Can’t thank you enough!
Great, thanks a lot.
I just tested it out on one of blogs and no matter where I put it in the loop, nothing shows up. I made sure my articles was submitted – do I have to have more than one Digg? Or maybe it doesn’t work with WP 2.6? Any ideas?
Thanks a lot for the tutorial. Will definitely use this.
I cannot get the button to display no matter where I put this code.
I’m also using Add To This plug in and would really like to get the DIGG this button in line with these other SN buttons.
Any chance of that? I’ve tried adding the to the table that holds the buttons, but no go. The best I can do is get a text link in a screwy place at the bottom of the post.
It’s tiny and not likely to get clicked.
Thanks a lot. This article really helped to simplify the process and save time!
[...] cant see why you cant get this one to work How to install ‘digg this’ WordPress plugin | blog.patyuen.com It you are editing the file’s arnt you ? __________________ Tottenham Forum | Business [...]
[...] it what ever you want aslong as its hardcoded in the script, however i have found another method How to install ‘digg this’ WordPress plugin | blog.patyuen.com __________________ Tottenham Forum | Business Directory | Joomla [...]
Much needed tutorial! At least for me
Thanks for simplifying this! Very useful!
Thanks great job man !
thanks!
Thanks! Nice write up!
What about including the Digg link under each article as its displayed on the blog home page – will this plugin work if installed inside the loop on the index.php, will it add the permalink of the article in question to digg or will it simply add the home page URL?
[...] How to install ‘digg this’ WordPress plugin | blog.patyuen.com (tags: wordpress digg plugin blog howto) [...]
[...] read more | digg story [...]
Of course, unless you have php[45]-curl installed, this won’t work. Just a heads up. Your notes worked fine, but why an RTF file? why not just a screen cap?
This is a cool little guide.. I like it..
But one small suggestion.. for those who don’t know..
Wordpress has an inbuilt feature to edit theme files… you don’t actually have to download it and upload again…