How to: Links for Del.icio.us, Digg, etc to Blog Posts

To add a quick link on your blog posts to all of the popular traffic-boosting sites like this website does at the bottom of each of it’s posts, simply add the code below to your single entry PHP file, main PHP file, or where you normally add the code for posts. For wordpress like this website, you have to add the code to The Loop in your theme files.

Under you can find the code to add.

XHTML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!-- Del.icio.us -->
<a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=< ?php the_title(); ?>">Del.icio.us</a>
<!-- Digg -->
<a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>">Digg</a>
<!-- Technorati -->
<a href="http://technorati.com/cosmos/search.html?url=<?php the_permalink() ?>">Technorati</a>
<!-- Blinklist -->
<a href="http://blinklist.com/index.php?Action=Blink/addblink.php&url=<?php the_permalink() ?>&Title=< ?php the_title(); ?>" >Blinklist</a>
<!-- Furl -->
<a href="http://furl.net/storeIt.jsp?t=<?php the_title(); ?>&u=< ?php the_permalink() ?>">Furl</a>
<!-- reddit -->
<a href="http://reddit.com/submit?url=<?php the_permalink() ?>&title=< ?php the_title(); ?>" >reddit</a>
Apr 22nd, 2007 | Posted in Sourcecode
No comments yet.

Leave a comment

XHTML: Usable tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Disclaimer: For any content that you post, you hereby grant to Deadhouse Gates the royalty-free, irrevocable, perpetual, exclusive and fully sublicensable license to use, reproduce, modify, adapt, publish, translate, create derivative works from, distribute, perform and display such content in whole or in part, world-wide and to incorporate it in other works, in any form, media or technology now known or later developed. Some rights reserved.