buttons (the_like_iframe()) * */ define('FACEBOOK_APP_ID', 0); function the_like_image() { global $post; $id = (int) $post->ID; if ($id > 0) { $image = get_posts(array( 'order' => 'ASC', 'orderby' => 'menu_order', 'post_parent' => $id, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'post_status' => 'inherit', 'numberposts' => 1 )); if (is_array($image) && count($image)) { ?> post_excerpt)); if (empty($content)) { $content = strip_tags(apply_filters('the_content', $post->post_content)); } $content = str_replace(array("\r\n", "\r", "\n", "\t"), '', $content); ?>

Warning! For Like Buttons to work properly, you need to register your site as a Facebook app here. Once you enter your Application Name and complete the security Captcha, select the Website tab on the left to obtain your Application ID and set Site URL to your site's root URL.