Adding “Share on Facebook” button to your posts

Posted in » Blogging Tips, WordPress - by Ades on July 29th, 2009

Here is line of code that if added to your wordpress blog theme will create a link “Share on Facebook”. This will make it easier for your readers to share your posts on Facebook.

No plugin needed. Just add this code where you want the link to appear, but make sure it’s in the loop… somewhere between title of the post and comments codes:

<a href=”http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>” target=”blank”>Share on Facebook</a>

You can replace the “Share on Facebook” text with facebook button.

[Post to Twitter]  [Post to Delicious]  [Post to Digg]  [Post to StumbleUpon] 


Related Posts




14 Responses to “Adding “Share on Facebook” button to your posts”

  1. By ThreeMoneyMethods Online on Jul 29, 2009

    That is super-helpful and a great idea.

    Thank-you!

  2. By how to make money on Jul 30, 2009

    Thanks for the code. The fact that you can just paste the code in your blog is very helpful.

  3. By Ah Hong on Jul 30, 2009

    I didn’t place any social bookmarking button plugin in my blog just to reduce load :)

  4. By Another Blogger on Jul 31, 2009

    Can I use it to my blogspot?
    Thanks for sharing with us brother.

  5. By buat web on Jul 31, 2009

    Thanks the code, i will use it at my blog.

    David

  6. By mp3 tunes on Aug 2, 2009

    Thanks for the info, I was always interested in how other people are doing such a reference on Facebook …

  7. By Marketing Man on Aug 3, 2009

    Adding this button to your posts makes it so much easier for people to post stuff they like to their Facebook profiles, for all their friends to see and enjoy. The easier you make it for your readers, the more reward you’ll receive. We all know that one of the basics of human relations is that everybody is inherently lazy, and the easier you make it for people, the more likely you are to get buy-in from your targeted audience.

  8. By Minnesota Attorney on Aug 3, 2009

    This is great. It’s so simple. Thank you!

  9. By abrablog on Aug 3, 2009

    thanks. I think its good to try it sometimes.

  10. By iphone for free on Aug 4, 2009

    Easier to just use a plugin though surely?

  11. By About blogger on Aug 9, 2009

    i have also got a very decent search engine ranking to my post about share on facebook link to blogger..
    http://about-new-blogger.blogspot.com/2009/06/add-share-on-facebook-link.html

  12. By Cigars on Aug 12, 2009

    simple and easy! Thanks!

  13. By South Tampa Homes on Aug 12, 2009

    It’s really easy to add facebook button on post and no plugin needed for it. Thanks.

  1. 1 Trackback(s)

  2. Jul 29, 2009: Blogging – Posts about Blogging as of July 28, 2009 | MelaniedeJonge.com

Post a Comment