How to Add a Facebook Like Button to WordPress?

Now, it is easier than ever to add the Facebook famous "Like"/"Recommend" 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="<?php echo
urlencode(get_permalink($post->id)); ?>&amp;layout=standard&
scrolling="no" frameborder="0" allowTransparency="true" ></iframe>

The final result should look like this:

WordPress is a trademark of WordPress Foundation. SiteGround is not affiliated with or endorsed by the WordPress Project or its trademark owners.