How to Add a Facebook Like Button to Your WordPress Posts

Written by Okta Sihotang | dibaca : 1300 kali

Now, it is easier than ever to add the Facebook famous “Like”/”Recommend” button to your posts and increase their popularity.

First, you need to login as administrator to the WordPress admin panel. Then go to Appearance -> Editor. Then place the following code wherever you want the like button to appear :

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

The final result should look like this :

Others social plugins of Facebook, please refer to https://developers.facebook.com/docs/plugins/

1 Comment (Upil) Betebaran Disini...

  1. I agree with your How to Add a Facebook Like Button to Your WordPress Posts | Okta Sihotang is a Web Developer, IT Consultant and WordPress Geeks, wonderful post.

Tinggalkan Upilmu Disini...