描述
OGPanic is an enhancement for WordPress posts when the links are shared on social media. Social medias like Facebook and Twitter using The Open Graph protocol to display featured image and title of the post.
OGPanic goes one step further: It adds the title and category info to the featured image and make your posts stand out when shared on social medias.
安装
安装并激活插件。使用文章的设置,它将自动呈现og:image标签。
Additional metadata og:image:width
and og:image:height
is added.
此插件依赖于Open Graph Protocol 插件。如果尚未安装,请使用og-panic进行安装
The following tags will be added by Open Graph Protocol
og:title
: The page’s title is used, this provides the title for posts, pages, archives etc.og:type
: The type will bearticle
in general,website
for the front page andblog
for the blog homepage.og:url
: The URL of the current page.og:site_name
: The name of the site.og:description
: Uses the full excerpt if available, otherwise derives it from the content. For author and archive pages, the type of page and title is used.og:locale
: The current locale.og:locale:alternate
: Indicates additional locales available if WPML is installed.
常见问题
- 如何设置API端点和令牌
-
You can get it from https://ogpanic.com/ by filling the form on that page.
评价
贡献者及开发者
更新日志
1.0.14
- 添加了两个新主题
1.0.13
- Bump version to 1.0.13
1.0.12
- [NEW] Choose different theme in post editor
- [NEW] Disable OGPanic for certain post in post editor
- [FIX] Fixed warning messages when there’s no OGPanic setting
1.0.11
- 更新翻译
1.0.7
- Add link to settings from
Installed Plugins
page - Correctly sanitize and escape options