This would go inside the loop, probably underneath the_content(), probably in your single.php file.
// bookmark on Delicious
<a rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink(); ?>&title=<?php echo urlencode(get_the_title($id)); ?>" title="Bookmark this post at Delicious">Bookmark at Delicious</a>
// submit to Digg
<a rel="nofollow" href="http://digg.com/submit?phase=2&url=<?php the_permalink(); ?>" title="Submit this post to Digg">Digg this!</a>
// tweet on Twitter
<a rel="nofollow" href="http://twitter.com/home?status=<?php echo urlencode("Currently reading: "); ?><?php the_permalink(); ?>" title="Share this article with your Twitter followers">Tweet this!</a>
// submit to StumbleUpon
<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php echo urlencode(get_the_title($id)); ?>" title="Share this post at StumbleUpon">Stumble this!</a>
// share on Facebook
<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php echo urlencode(get_the_title($id)); ?>" title="Share this post on Facebook">Share on Facebook</a>
// submit to Blinklist
<a rel="nofollow" href="http://blinklist.com/index.php?Action=Blink/addblink.php&url=<?php the_permalink(); ?>&Title=<?php echo urlencode(get_the_title($id)); ?>" title="Share this post on Blinklist" >Blink This!</a>
// store on Furl
<a rel="nofollow" href="http://furl.net/storeIt.jsp?t=<?php echo urlencode(get_the_title($id)); ?>&u=<?php the_permalink(); ?>" title="Share this post on Furl">Furl This!</a>
// submit to Reddit
<a rel="nofollow" href="http://reddit.com/submit?url=<?php the_permalink(); ?>&title=<?php echo urlencode(get_the_title($id)); ?>" title="Share this post on Reddit">Share on Reddit</a>
Awesome !
This is an great collection of usefulness here.
All the major links and codes we need to either use as-is or built or (sprite-powered ;-) ) GUI-version of it.
Thanks !
Thanks for making these links available in a form any web publisher can understand — I’ll try to make my own, more customized, images to link with these social bookmarking sites!
I can’t get these to validate, anyone know what I might be doing wrong. This is the message I get,
“general entity “t” not defined and no default entity”
I’ve created a facebook share button on a wordpress blog.
Big Thanks to make it easy to include to our Coda App ;)
Nice post! Very helpful indeed!
Thanx a lot buddy.
Isnt there any app which submit to these sites automatically with minimal interaction possible?
I hope this can help you.
https://wordpress.org/plugins/html-social-share-buttons/
Authors site: http://www.zm-tech.net/wp-plugins/html-social-share-buttons/
This plugin update regularly and add new item if requested.
thanks to sharing social bookmarking button good post
Nice one ..
Great! This is the way to do without any plugins :)
this nice code however all goes no to ready plugins its easy to be used
Wow dats great …….. no need of JS and plugins in wordpress
Nice list – However the Twitter one doesn’t seem to work anymore.
This one does:
http://twitter.com/share/?text=description+text&url=http://my-url.com/ – And it automatically runs it through Twitters shortlink service as well..
to twitter, I prefer to use tweetmeme, because the count from twitter.com sometimes invalid.
thank you for this information.
Nice.. thanks, useful code.
You always have the best info. Thanks for all your sharing.
very helpful ! thx :)
this is great! finally a way around those damn chicklets. custom icons and no more share counts!
i’m curious about how to do the same thing for google+ and linkedin… any thoughts?
Thanks for the great info, Chris. As always, spot on.
@ilana, I did come across a way to also add a Google+ share link without the Plus icon. A bit late to your post, but in case this helps, here it is in the same format as Chris’s example above.
On a related note, here is a share link for LinkedIn as well, formatted as the above.
Awesome Jonathan! Thanks for sharing the knowledge!! I had figured out a way for both, but yours are awesome too. Google+ was the sort tough one. For some reason, the box that popped up for me was always in a different language than English, I couldn’t figure out why, the URL was plusone.google.com. I’ll have to try your solution out!
Very useful… many thanks! One little problem, I’m displaying this:
” title=”Share this article with your Twitter followers”>Tweet this!
…when I cut and paste the twitter code. I’m looking closely and comparing with the FB code which seems to be working.
Please and thanks for any insights.
Hi @Michael, what exactly isn’t working?
Hi Jonathon,
I believe this portion:
” title=”share this article with your twitter followers”>
should not be appearing in the browser. I’m cutting and pasting the snippet so I don’t think I’ve altered the mark up in any way. I put the Facebook snippet in and it says “share on Facebook” in the browser. Which seems correct although The link takes me to Facebook but doesn’t paste a link to the page in text window on Facebook. Maybe that is what is supposed to happen. I don’t understand php but it does kind of look like it wants to get the permalink to the page.
Thanks for your interest and the help.
I’m using this on a development site at: http://durmpbeta.h5video.com
Hi Michael,
What are you using for a code editor? On my local dev, the Facebook link carries the link with it, and the Twitter works fine.
Maybe try copy / pasting the code snippets into Notepad, Notepad++ or any other simple text editor. If you’re using something like Word, or a rich text editor, then you might be having issues with some of the quotation marks and symbols. Could try pasting into Notepad++, select a quotation mark and type the quotation over to see if it switches to a simple quote. Hope that works for you. Nice photos on your site.
Thank you for the feedback Jonathon. I will reveal my ignorance and tell you I was just copying and pasting out of the browser window. I’m now putting it into Textmate and saving as a php file before copying it. This did clear up the code showing up in the browser but I still don’t get the link carrying over to FB.
I have more to experiment and work with now and really appreciate your insight into the problem.
The photos are indeed nice, but, alas they were taken by my friend who is also named Michael. I’m converting his static site to a WordPress site so he can more easily update his content on his own.
Very nice code
Very very cool !!
Now, only need link to share via mail
any idea?
You could use this:
Share through email
This is awesome info. I’ve been searching for exactly this!!!
Can someone tell me if I can just replace these for the addthis code I’m actually using?
It’s because I’m tired for them (addthis) to slow my pageload.
Thanks to all and,
Greatest 2013 to you all!!!
I’ve implemented most of them… works beautifully except for the g+ which I replaced with this one (retrieved from Google) on this comment date:
Thank you all!!!
Pinterest? Anyone?
Hey!
Thanks for this snippet! It was excactly what I was looking for!
If anyone is interested, after reading this I’ve created a small
tweet_this($post_id);
function for generating Twitter Urls in WordPress with an excerpt of your choice.For instance you can use advanced custom fields or the_excerpt() or the_title() as a fallbacks to generate the Tweet.
The Tweet is shorten to 140 before creating the url.
You can as well shorten the link if you wish.
You just have to call the function to generate the URL :
And your Tweet will look like :
“Currently reading http://example.com/?p=101 : Your wonderful chosen (and shorten if needed) excerpt or the_title() as a fallback”
Check the Gist : https://gist.github.com/kartonnade/5221436
Any feedback or improvement is welcome!
Awesome work! Thanks for sharing this snippet. I like this because the fact you do not have to use a plugin which I feel slows your load time down.
Thanks again,
Ryan Wagner
Thank you, this works great! Love how it’s so simple.
I have a tiny problem with the facebook link tho. I have all the meta properties set up like og:image, but when clicking on the facebook share link for the first time it doesn’t show the featured image. :/
Is it common for everyone else too?
nice code
Here’s my list, in case it helps anyone:
Thankyou for this short code, is there any way to work that out by self made plugin? Bcz my website ( https://www.hirenkhambhayta.com/ ) is using a premium theme. And each time when theme is updated it removes all codes and I have to write that again.