Posts Tagged ‘ Wordpress ’

8
22
Apr

Integrate Facebook’s Like Button into WordPress

Facebook’s new Like The Internet takeover is underway. I think I like it despite privacy concerns. I can fiddle with my facebook privacy settings or simply choose not to ‘like’ stuff I don’t care to share. But, I can see the benefits for driving traffic bigtime.

I’ve been playing with it tonight and was having trouble getting the Like button to share a specific post. Instead, Facebook’s default iframe code that spits out is URL-specific. But with the miracle of PHP (and until someone creates a nifty plugin), you can substitute the URL with this:

…like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>

So instead of this:

<iframe src=”http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.stephanieromanski.com&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=recommend&amp;font=arial&amp;colorscheme=light” scrolling=”no” frameborder=”0″ allowTransparency=”true” style=”border:none; overflow:hidden; width:450px; height:px”></iframe>

You get this:

<iframe src=”http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;layout=standard&amp;show-faces=true&amp;width=500&amp;action=like&amp;colorscheme=light” scrolling=”no” frameborder=”0″ allowTransparency=”true” style=”border:none; overflow:hidden; width:500px; height:60px”></iframe>

Post this on your single.php page and voila.

[UPDATE] Well, I’m too slow. There already is a WordPress plugin :) Get it here

4
19
Sep

Thank you @stephenfry

Just happened to catch a tweet tonight from @stephenfry mentioning a plugin called WPTouch. How in the world did I not know about this awesome plugin? Now this website – and every other WordPress blog I look after – is smartphone-gorgeous and I only had to install the plugin and fiddle with a couple of settings.

God I love WordPress.

It has been brought to my attention that in my excitement over the plugin I didn’t actually say what it does. Oops :)

I’ll let the plugin developers tell you:

WPTouch “…delivers a fast, user-friendly and stylish version of your site to your iPhone, iPod touch, Android, Opera Mini mobile, Palm Pre and BlackBerry Storm visitors without modifying a single bit of code (or affecting) your regular desktop theme.”

Here’s a screenshot of this website on my iPod Touch:

wptouchshot