WordPress snippet for sharing post on Facebook

If you want to make a sharing option on your WordPress site without using third party plugin, then below WordPress snippet will work fine.
Select the desired template in your theme folder and place below PHP code within the loop

 
<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>

Related posts:

HTML5 page structure

HTML5 offers more powerful structure comparing to older versions of Html. There are many new …


Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us