Title: OpenGraph Fallback Embed
Author: Gary Pendergast
Published: <strong>2026 年 3 月 25 日</strong>
Last modified: 2026 年 3 月 25 日

---

搜索插件

![](https://ps.w.org/opengraph-fallback-embed/assets/banner-772x250.png?rev=3491323)

![](https://ps.w.org/opengraph-fallback-embed/assets/icon.svg?rev=3491323)

# OpenGraph Fallback Embed

 作者：[Gary Pendergast](https://profiles.wordpress.org/pento/)

[下载](https://downloads.wordpress.org/plugin/opengraph-fallback-embed.1.3.7.zip)

 * [详情](https://cn.wordpress.org/plugins/opengraph-fallback-embed/#description)
 * [评价](https://cn.wordpress.org/plugins/opengraph-fallback-embed/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/opengraph-fallback-embed/#developers)

 [支持](https://wordpress.org/support/plugin/opengraph-fallback-embed/)

## 描述

OpenGraph Fallback Embed adds a custom Gutenberg block and an auto-embed fallback
that renders rich link cards using OpenGraph metadata from any URL.

**Features:**

 * **OpenGraph Embed block** — Paste any URL to embed it as a styled card showing
   the page’s title, description, image, and site name.
 * **Auto-embed fallback** — When WordPress can’t find an oEmbed provider for a 
   URL pasted on its own line, this plugin automatically fetches the page’s OpenGraph
   tags and renders a card instead of a plain link.
 * **Graceful degradation** — Falls back to Twitter Card meta tags, then to HTML`
   <title>` and `<meta name="description">` when OpenGraph tags are missing.
 * **Transient caching** — Fetched metadata is cached for 7 days to minimise external
   requests.

### Development

The source code for this plugin, including unminified JavaScript and CSS, is available
on GitHub:

[OpenGraph Fallback Embed on GitHub](https://github.com/pento/opengraph-fallback-embed)

The plugin uses [@wordpress/scripts](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/)
for building. Source files are in the `src/` directory. See the repository README
for build instructions.

## 屏幕截图

 * [[
 * A URL with no oEmbed provider shows as a plain link by default.
 * [[
 * With OpenGraph Fallback Embed active, the same URL renders as a rich card with
   title, description, and image.
 * [[
 * The OpenGraph Embed block in the editor with a live preview.

## 区块

该插件提供了 1 个区块.

 *   OpenGraph Embed Embed any page as a rich link card using its OpenGraph tags.

## 常见问题

### What happens if a URL has no OpenGraph tags?

The plugin falls back to Twitter Card meta tags, then to the page’s `<title>` and`
<meta name="description">`. If none of these are available, the original WordPress
output is preserved.

### Does this override existing embed providers?

No. This plugin only activates when WordPress has no other embed handler for the
URL.

### Can I customise the card appearance?

The card uses the `.og-fallback-embed` CSS class. You can override styles in your
theme.

## 评价

此插件暂无评价。

## 贡献者及开发者

「OpenGraph Fallback Embed」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Gary Pendergast ](https://profiles.wordpress.org/pento/)

「OpenGraph Fallback Embed」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/opengraph-fallback-embed/contributors)
为本插件所做的贡献。

[帮助将「OpenGraph Fallback Embed」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/opengraph-fallback-embed)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.3.7

 * Added screenshots, and tweaked readme.txt.

#### 1.3.6

 * Removed a dev file from the plugin zip.

#### 1.3.5

 * Add source code repository link to readme.
 * Use plugin-specific prefix for transient cache keys.

#### 1.3.4

 * Tweak the plugin header.

#### 1.3.3

 * Remove one more file from the plugin zip.

#### 1.3.2

 * Fix the block version number not being bumped in the last release.

#### 1.3.1

 * Remove some unnecessary files from the plugin zip file.

#### 1.3.0

 * Add support for falling back to OG tags when the Embed block fails.

#### 1.2.0

 * Add custom Gutenberg block for manual OpenGraph embeds.
 * Add REST API endpoint for editor previews.
 * Improve fallback chain: OG  Twitter Card  HTML meta.

#### 1.1.0

 * Add transient caching for fetched metadata.

#### 1.0.0

 * Initial release with auto-embed fallback.

## 额外信息

 *  版本 **1.3.7**
 *  最后更新：**2 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.3 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (Australia)](https://en-au.wordpress.org/plugins/opengraph-fallback-embed/)
   和 [English (US)](https://wordpress.org/plugins/opengraph-fallback-embed/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/opengraph-fallback-embed)
 * 标签
 * [block](https://cn.wordpress.org/plugins/tags/block/)[card](https://cn.wordpress.org/plugins/tags/card/)
   [embed](https://cn.wordpress.org/plugins/tags/embed/)[link](https://cn.wordpress.org/plugins/tags/link/)
   [opengraph](https://cn.wordpress.org/plugins/tags/opengraph/)
 *  [高级视图](https://cn.wordpress.org/plugins/opengraph-fallback-embed/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/opengraph-fallback-embed/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/opengraph-fallback-embed/reviews/)

## 贡献者

 *   [ Gary Pendergast ](https://profiles.wordpress.org/pento/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/opengraph-fallback-embed/)

## 捐助

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

 [ 捐助此插件 ](https://github.com/sponsors/pento)