WordPress Facebook Like Button

Facebook is most popular community website now. And latest trend is to add a facebook like button on your blog posts in this post I will show you how to add facebook like button on your blog posts.

Open your themes single.php file and add following code inside it where you want that button.

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe>
Read Also :  Wordpress get Category ID by Name

Be the first to comment

Leave a Reply

Your email address will not be published.