Getting the Digg button in WordPress to work

July 4, 2008 · Posted in Technical · 5 Comments 

There are a number of posts out there on getting the Digg button into WordPress – I ended up using snippets from a couple of them, and thought that it might be helpful for someone else.

I added the following code to my archives, index, and single post files:

<div style=”float:left; margin-right:10px;”>
<script type=”text/javascript”>digg_url = “<?php the_permalink(); ?>”</script>
<script src=”http://digg.com/tools/diggthis.js” type=”text/javascript”></script>
</div>

I inserted the code immediately above the <?php the_content (‘<p>Read the rest of this entry &raquo;</p>’); ?> line in each of the files.

The div style lines puts the button floating (instead of above the post) and to the left with a 10 pixel margin.

The permalink line makes sure that the correct link is used for Digg submission – before I put in this snippet of code, the Digg button on my main page referenced the home page instead of the post. This meant that that Diggs could possibly be split across multiple submissions for the same content. For example, prior to inserting the permalink snippet, the Digg button on my main page for a prior post showed a “Submit” option instead of the Digg count.

Hope this helps someone out!

Add to Del.cio.us RSS Feed Add to Technorati Favorites Stumble It!

Entrecard – a great way to begin networking

January 18, 2008 · Posted in Networking, Site Development, Technical · 2 Comments 

As a blogger who is just starting out, I know that I need to increase my content and my traffic.  To date, I have not really been focusing on increasing traffic because I would rather spend my time generating quality content.  However, a recent post by Lazy Man influenced me to check out Entrecard, which is a blog networking site.  There is a great interview with Entrecard’s Graham Langdon on ProBlogger, which talks about how Entrecard was created as well as how it works. 

Since placing the widget on my page a couple of days ago, I’ve gotten 11 cards dropped on me, and 8 ads bought.  I would have to say that I am pretty impressed with how easy it is to start making others aware that I exist, and plan on spending some time over the next couple of weeks really trying to develop some traffic to the site using Entrecard.  There don’t seem to be any negatives to Entrecard yet (other than that it is addicting!), and at this point would highly recommend it to anyone just starting out. 

Add to Del.cio.us RSS Feed Add to Technorati Favorites Stumble It!