WordPress 2.5 and Gregarious
Updating to WordPress 2.5 went easily, except that my gregarious plugin stopped working. A shame, as I liked that one quite a bit and it appears the author doesn’t have time to maintain it.
Anyhow, for those of you that relied on gregarious to provide your digg links, here’s a quick fix: Edit your theme and add the following code right after the content or title of each article (just insert it wherever you want the digg badge to appear):
<script type="text/javascript">
digg_url = '<?php the_permalink() ?>';
digg_title = '<?php the_title(); ?>';
digg_skin = 'compact';
digg_window = 'new';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
In my case (it varies depending on what theme you are using), I had to edit home.php, and I inserted the code immediately after the line that reads <?php the_content(__('Read more'));?>. It should be pretty easy to find.
The above code inserts a compact badge; if you prefer the larger badge, leave out the digg_skin = 'compact' line. There are other options, too, that you can look up on the digg integration page. It won’t bring back all the features of gregarious but at least your badges will be back.











Digg Integration in Wordpress | Cardeo Design Blog
on September 15th, 2008
[...] don’t want to be duplicating Digg submissions. Anyhow, I found a quick code snippet over at weblog.bosslogic.com that fixes the [...]