跳至内容
  • 登录
  • 注册
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 消息
  • 支持
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress

插件

  • 我的收藏
  • Beta测试
  • 开发者

该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

下载

Open Graph Protocol Tools

作者Joe Crawford
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

Adds Open Graph Protocol meta tags to individual content pages of your WordPress install. Works in coordination with “Like” buttons and “share” inside Facebook and other consumers of OGP metadata.

安装

  1. Upload open-graph-protocol-tools/ to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. To add the “Like” module, use this code:
<?php
/**
 * Include this code on your theme for single blog posts (for example, in your single.php file)
 * or on your blogs main page to include a Facebook "Like" iframe
 */
if (function_exists('the_opengraphprotocoltools_like_code')):
   the_opengraphprotocoltools_like_code();
else:
    echo "<!-- opengraphprotocoltools is not activated -->";
endif;
?>

It would be best if in your theme you also added an attribute in the &lt;html&gt; tag, like this: &lt;html prefix="og: http://ogp.me/ns#"&gt;

常见问题

Is there a FAQ?

I’ve gotten some bug reports via GitHub, you can report bugs or make comments there.

For more information about Open Graph Protocol

Visit Open Graph Protocol.

评价

此插件暂无评价。

贡献者及开发者

“Open Graph Protocol Tools” 是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • artlung
  • Pat Hawks

将“Open Graph Protocol Tools”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1

  • First version.

1.2

  • Changed instructions, fixes encoding errors for non-English content.

1.3

  • Improve issue with home vs front page

1.6

  • Improvements by pathawks to accommodate more types
  • Address double encoding issue with wptexturize modified values

1.7

  • Misc improvements I never enumerated and can’t remember. Whoops.

1.8

  • WordPress 5 compatibility check!

1.9

  • Support for tag archive pages

1.91

  • WordPress 5.5 compatible

额外信息

  • 版本:1.91
  • 最后更新:3年前
  • 有效安装数量:70+
  • WordPress版本: 2.9 或更高版本
  • 最高兼容版本:5.5.12
  • 语言:
    English (US)
  • 标签:
    facebookmetadata
  • 高级视图

评级

查看所有评价
  • 5星 1
  • 4星 0
  • 3星 0
  • 2星 0
  • 1星 0
登录以提交评价。

贡献者

  • artlung
  • Pat Hawks

支持

有话要说吗?是否需要帮助?

查看支持论坛

捐助

您愿意支持这个插件的发展吗?

捐助此插件

  • 关于
  • 消息
  • 主机
  • 捐助
  • Swag
  • 支持
  • 开发者
  • 参与
  • 学习
  • 展示站点
  • 插件
  • 主题
  • 区块样板
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • 隐私
  • Public Code
WordPress.org
WordPress.org

China 简体中文

  • 访问我们的 Facebook 公共主页
  • 关注我们的 Twitter 账号
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • Visit our YouTube channel
代码如诗