【问题标题】:Facebook Like button issue where "like" occurs on different page than currently viewing in WordpressFacebook Like 按钮问题,其中“like”出现在与当前在 Wordpress 中查看的页面不同的页面上
【发布时间】:2011-03-01 01:57:58
【问题描述】:

我遇到了一个问题,Facebook“喜欢”按钮喜欢一个类别页面,而不是 wordpress 中的单个帖子。我试过同时使用“Facebook 喜欢它!”插件(目前正在使用这个)和“Easy Facebook Like Button”插件。

最初,“赞”按钮会“赞”单个帖子页面并将其发送到 facebook,但现在它“赞”了某些帖子上的类别 URL。

以下是 URL 示例:

1) 一位艺术家的主类别页面。注意左边的like按钮。它“喜欢”这位艺术家。 http://envisionart.org/category/artists/christian/

2)点击第一个帖子,如果您已经喜欢该艺术家,它将自动让您喜欢“帖子”,并将“喜欢”信息发送到facebook,与上面#1中的信息相同 http://envisionart.org/artists/christian/atmospheric-perspective-3/

3) 同一位艺术家,第三个帖子。此帖子允许最终用户“喜欢”该帖子与艺术家。我很困惑为什么。 http://envisionart.org/artists/christian/bat-artist-trading-card/

任何帮助都会很棒。我很乐意应要求发布一些代码。

另外,请查看这些页面以进行交叉引用。相同的设置,但我对类似按钮没有任何问题: http://envisionart.org/category/programs/camps/

我被难住了

【问题讨论】:

    标签: php wordpress wordpress-theming facebook-like


    【解决方案1】:
    href=<?php echo urlencode(get_permalink()); ?>
    

    例子..

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-11-04
      • 1970-01-01
      • 1970-01-01
      • 2012-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多