Title: Dewey&#039;s Open Graph Helper
Author: whatadewitt
Published: <strong>2015 年 4 月 23 日</strong>
Last modified: 2016 年 12 月 3 日

---

搜索插件

![](https://ps.w.org/deweys-open-graph-helper/assets/banner-772x250.png?rev=1143323)

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

![](https://s.w.org/plugins/geopattern-icon/deweys-open-graph-helper_ffffff.svg)

# Dewey’s Open Graph Helper

 作者：[whatadewitt](https://profiles.wordpress.org/whatadewitt/)

[下载](https://downloads.wordpress.org/plugin/deweys-open-graph-helper.2.0.4.zip)

 * [详情](https://cn.wordpress.org/plugins/deweys-open-graph-helper/#description)
 * [评价](https://cn.wordpress.org/plugins/deweys-open-graph-helper/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/deweys-open-graph-helper/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/deweys-open-graph-helper/#developers)

 [支持](https://wordpress.org/support/plugin/deweys-open-graph-helper/)

## 描述

A simple plugin for adding open graph tags to WordPress sites. Focuses more on theme
and plugin developers. No admin interface (yet), everything is configured via code.(
I’ll write a better description when I can think of one…)

## 安装

 1. Upload the `wad_open_graph` directory to `/wp-content/plugins/`
 2. 通过WordPress的的“Plugins”菜单激活插件
 3. `add_post_type_support` for `ogtags` to the different post types you want to enable
    open graph tags for
 4. Customize the open graph settings by using the `og_tags` filter

## 常见问题

  How do I use this?

After you have installed the plugin, the plugin will automatically add open graph
tags to your site’s front page. `og:site_name` and `og:title` will both be set to
your site’s name, `og:type` will be “website”, `og:url` is the site’s url and `og:
description` is the WP site description.

After you’ve enabled support for each of the post type(s), you begin to see open
graph tags appear in those post type page `<head>` tags.

On post types that support ‘ogtags’, the plugin will add og tags for `og:site_name`(
your blog’s title), `og:title` (the post title), `og:url` (the post permalink), `
og:description` (the post excerpt) and `og:type` is automatically set to “article”.
If your post has a thumbnail image, that will be set as the `og:image`.

  Can I customize the og tags?

You can!

You can customize all of the different posts you’re supporting using the `og_tags`
filter. Also, if you’re supporting multiple post types and only want to customize
a particular post type, you can use the `[POST_TYPE]_og_tags` filter, where you 
can replace `[POST_TYPE]` with `post` or `page` (or whatever the post_type is) to
customize the content of a particular post type.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Dewey's Open Graph Helper」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ whatadewitt ](https://profiles.wordpress.org/whatadewitt/)

[帮助将「Dewey's Open Graph Helper」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/deweys-open-graph-helper)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/deweys-open-graph-helper/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/deweys-open-graph-helper/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/deweys-open-graph-helper/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/deweys-open-graph-helper/)。

## 更新日志

#### 2.0.4

 * fixed the issue where apostrophes aren’t always showing properly in shares

#### 2.0.3

 * Small tweaks based on some feedback around custom data

#### 2.0.2

 * Small changes to fix some issues with some of the og tag meta not being rendered
   properly

#### 2.0.1

 * Small changes to fix some issues with some of the og tag meta not being rendered
   properly

#### 2.0.0

 * Added a meta box to make it easier to use custom og tag meta

#### 1.1.0

 * Removed the filter from being called on the homepage, as it was causing unwanted
   overwrites

#### 1.0.1

 * Moved array declaration to fix error notice

#### 1.0

 * Initial “open” release

## 额外信息

 *  版本 **2.0.4**
 *  最后更新：**10 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.5.1 或更高版本 **
 *  已测试的最高版本为 **4.5.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/deweys-open-graph-helper/)
 * 标签
 * [facebook](https://cn.wordpress.org/plugins/tags/facebook/)[open graph](https://cn.wordpress.org/plugins/tags/open-graph/)
   [sharing](https://cn.wordpress.org/plugins/tags/sharing/)[social](https://cn.wordpress.org/plugins/tags/social/)
 *  [高级视图](https://cn.wordpress.org/plugins/deweys-open-graph-helper/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/deweys-open-graph-helper/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/deweys-open-graph-helper/reviews/)

## 贡献者

 *   [ whatadewitt ](https://profiles.wordpress.org/whatadewitt/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/deweys-open-graph-helper/)