WordPress tutorials: Share on Facebook

Wpsnipp – Share on Facebook.Place this PHP code within the loop of your wordpress theme index.php and visitors can click this link to share your post on Facebook. I am curios about the URI for the “Share on Facebook” you see on some websites.

 

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

Leave a comment