Danny Bull

Add a Facebook Like button to your Wordpress blog

Apr 29th 2010
5 Comments
respond
trackback



Adding a Facebook Like button to your Wordpress blog is extremely simple and potentially a brilliant way to generate traffic. There’s no doubt the impact Facebook can have when releasing features and the new Like button is no different. Its expected it will make its way around the web incredibly quickly. You only need to look at the success of similar offerings, such as the TweetMeme Retweet button, which recently served 1.6 billion buttons in 30 days. And Facebook will no doubt see a greater uptake.

So, here’s how to add the Facebook Like button to your Wordpress blog:

1
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo get_permalink(); ?>&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:50px; height:px"></iframe>

That’s it. Well, almost. You need to drop this code into your Wordpress post template (generally single.php) or sidebar.php. The get_permalink tag tells Wordpress to add the current post URL to the Like button.

There are various ways you can customise the button and there’s also a JavaScript version for deeper integration.


5 Responses

  1. AroliBoitly says:

    adderall no prescription online pharmacy
    There are a lot of Adderall no prescription online pharmacy options. However, not all of these are legitimate. Even though the fakes represent just a very small amount of the pharmacies online, they have managed to give a bad reputation to all of them and cast suspicion on legitimate businesses. Luckily, it has become easier than ever to spot the fakes and find real pharmacies where you can buy Adderall without having to see a doctor for a prescription.

  2. Bottomless says:

    Here’s the Wordpress plugin:
    http://wordpress.org/extend/plugins/like
    No coding necessary, you can customize the look and placement of the button in the settings interface.

  3. We are now at around 13 Billion buttons in last 30 days. And on 150,000+ sites (thats 3 times more than Facebook)

Leave a Reply

Categories