Tutorials, how-to, documentation, tips and tricks, useful links.
You are invited to digitally help too.
We use the web daily, looking for information, practical guidelines and helpful materials for our activities. Since we do it, we thought of blogging it in the hope it shortens your search for similar info. We try new things as hobby or requested by daily life. We believe that sharing experience in a practical manner might help the others.

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


This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a


January 2008
M T W T F S S
     
 123456
78910111213
14151617181920
21222324252627
28293031  
eXTReMe Tracker