Facebook 的“赞”按钮问题发生在与当前在 WordPress 中查看的页面不同的页面上

发布于 2024-10-04 16:36:22 字数 1084 浏览 0 评论 0原文

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

最初,“喜欢”按钮会“喜欢”单个帖子页面并将其发送到 Facebook,但现在它“喜欢”类别 URL,而不是某些帖子。

以下是 URL 的示例:

1) 一位艺术家的主类别页面。请注意左侧的“赞”按钮。它“喜欢”艺术家。 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-卡/

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

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

我被难住了

I'm having an issue where facebook "like" buttons are liking a category page rather than a single post in wordpress. I've tried using both the "Facebook Likes it!" plugin (currently using this one) and the "Easy Facebook Like Button" plugin.

Initially the like button would "like" the single post page and send it to facebook, but now it is "liking" the category url instead on some posts.

Here are URL's for example:

1)Main category page for one Artist. Note the like button on the left. It "likes" the artist.
http://envisionart.org/category/artists/christian/

2)Click on the first post, and it will automatically have you like the "post" if you already liked the artist, and it sends the "like" information to facebook as the same information as in #1 above
http://envisionart.org/artists/christian/atmospheric-perspective-3/

3)Same artist, third post. This post allows the end-user to "like" the post vs. the artist. I'm stumped as to why.
http://envisionart.org/artists/christian/bat-artist-trading-card/

Any help would be wonderful. I'll gladly post some code on request.

Also, check out these pages to cross-reference. Same setup, but I have no issues with the like buttons:
http://envisionart.org/category/programs/camps/

I'm stumped

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

唯憾梦倾城 2024-10-11 16:36:22
href=<?php echo urlencode(get_permalink()); ?>

例子..

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

Example..

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink()); ?>&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文