0
Code For Making A List Of Social Sharing Links
Similar to the social links bar you see at the top of posts here on New2WP (ie: right below this text), this is how you create social sharing links for Twitter, Facebook, Delicious, StumbleUpon, DesignBump, TheWebBlend, DesignFloat, Digg, and a RSS Feed link and RSS email subscribe link.
<ul>
<li><a href="http://twitter.com/home?status=<?php the_title(); ?> <?php if (function_exists('wp_get_shortlink')) { echo wp_get_shortlink(get_the_ID()); } else { the_permalink(); } ?>" target="_blank" class="twitter" rel="nofollow"><?php __( 'Twitter' ); ?></a></li>
<li><a href="http://facebook.com/share.php?u=<?php the_permalink(); ?>&title=<?php the_title(); ?>" target="_blank" class="facebook" rel="nofollow"><?php __( 'Facebook' ); ?></a></li>
<li><a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" target="_blank" class="delicious" rel="nofollow"><?php __( 'Delicious' ); ?></a></li>
<li><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" target="_blank" class="stumble" rel="nofollow"><?php __( 'Stumble' ); ?></a></li>
<li><a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title(); ?>" target="_blank" class="digg" rel="nofollow"><?php __( 'Digg' ); ?></a></li>
<li><a href="http://thewebblend.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" rel="nofollow" class="blend" title="Blend This!" target="_blank"><?php __( 'WebBlend' ); ?></a></li>
<li><a href="http://designbump.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" rel="nofollow" class="bump" title="DesignBump This" target="_blank"><?php __( 'DesignBump' ); ?></a></li>
<li><a href="http://www.designfloat.com/submit.php?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" rel="nofollow" class="float" title="Post this on DesignFloat" target="_blank"><?php __( 'DesignFloat' ); ?></a></li>
<li><a href="http://feeds.feedburner.com/New2WP" title="Get the RSS Feed" target="_blank" class="rss" rel="bookmark"><?php __( 'RSS' ); ?></a></li>
<li><a href="http://feedburner.google.com/fb/a/mailverify?uri=New2WP" title="Get Email Updates Sent to Your Inbox" class="email"><?php __( 'Email' ); ?></a></li>
</ul>
Levels: Syntax: PHP





