How to: insert DiggIt widget in wordpress blog templates.
When you have a blog hosted directly on Wordpress.com website you have the possibility of adding the DiggIt widget into your posts by simply typing [digg=http://digg.com/the-digg-url-for-the-post-you-already-dugg].
But when you host the wordpress blog on your own webserver this feature is not available unless you install a Digg plugin and integrate it in your posts.
Steps I took:
- I downloaded the diggIT plugin available from here.
- I unzipped and copied the diggthis.php file in the /wp-content/plugins/ directory
- I edited the single.php and page.php files in my template directory (/wp-content/themes/my-template-name-folder/)
- …and pasted this code: <?php if(function_exists(digg_this)) { digg_this(”, ”, ”, ”); } ?> right above the line saying <?php the_content(); ?>
- Then I went to admin interface to Plugins and activated the diggIT plugin.
That’s all. Saved and uploaded the files back to the server and viewed the page.
It worked for me. Hope it helps you too. Happy digging!!

















No Comments
Leave a comment