试图让我的“喜欢”按钮链接到 Wordpress 附加的图像 URL。
是否可以仅“喜欢”图像文件?
这就是我所拥有的
<?php $large_image_url = wp_get_attachment_url( get_post_thumbnail_id(), 'large'); ?>
<div class="likeButton" style="float: left;"><iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode($large_image_url); ?>&layout=button_count&show_faces=false&width=100&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:25px"></iframe></div>
Firebug 显示它正在链接,但按喜欢没有结果到我的 FB 页面。哎呀!