Schwarttzy's Open Graph

外掛說明

Schwarttzy’s Open Graph is a lightweight WordPress plugin that automatically adds Open Graph meta tags to your website’s posts, pages, and front page. These tags optimize content sharing on social media platforms like Facebook, LinkedIn, and Twitter by providing rich previews with titles, descriptions, and images.

Key Features:
– Automatically adds Open Graph meta tags for posts, pages, and the front page.
– Uses post/page title, featured image, excerpt (or content trimmed to 300 characters), and permalink.
– Supports a configurable default image URL for when no featured image is set.
– Simple, lightweight, and easy to use with minimal configuration.
– Ensure your theme includes <?php wp_head(); ?> in its header.php file for meta tags to render.
– Test shared links using tools like the Facebook Sharing Debugger.
– This plugin focuses on simplicity and does not support archive pages or advanced image uploaders.

Support

For support, visit the WordPress.org support forum or contact the author at https://schwarttzy.com/contact-me/.

螢幕擷圖

  • The settings page under Settings > Schwarttzy’s Open Graph where you can configure the default image URL featuring Mousse, the chocolate lab.

安裝方式

  1. Upload the schwarttzys-open-graph folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Navigate to Settings > Schwarttzy’s Open Graph to configure the default image URL (e.g., https://example.com/default-image.jpg).

常見問題集

How do I set a default image?

Go to Settings > Schwarttzy’s Open Graph and enter the full URL of your default image (e.g., https://example.com/default-image.jpg). This image is used when a post or page lacks a featured image.

What meta tags are added?

The plugin adds the following Open Graph meta tags:
og:title: Post/page title or site name (front page).
og:description: Excerpt or content trimmed to 300 characters (posts/pages), or site description (front page).
og:image: Featured image or default image URL.
og:url: Post/page permalink or home URL.
og:type: “article” (posts/pages) or “website” (front page).
og:site_name: Site name.
og:locale: Site locale for internationalization.
article:published_time: Post publication date (posts/pages only).

Does this plugin work with SEO plugins?

It may conflict with plugins like Yoast SEO or Rank Math that also add Open Graph tags, leading to duplicates. Consider disabling Open Graph features in those plugins or using this clean, simple alternative for focused social media sharing.

Can I use my own images?

Yes, upload an image to your server and enter its full URL in the Settings > Schwarttzy’s Open Graph page.

使用者評論

2025 年 11 月 21 日 1 則留言
featured images are your.. featured images. there’s a default featured image incase you dont have one. doesnt get any simpler.
2025 年 8 月 29 日
This is my light weight and simple plugin to include Open Graph data for websites. Ever plugin I’ve ever used make things overly complicated. There’s no need to do that. The featured image should be the featured image. The title should be the title. Seems simple enough to me so I wrote this plugin.
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Schwarttzy's Open Graph〉的開發相關工作。

參與者

將〈Schwarttzy's Open Graph〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1

  • Added og:locale meta tag for better internationalization.
  • Improved description trimming to 300 characters for optimal social previews.
  • Added admin notice for conflicts with other SEO plugins, suggesting this simple alternative.
  • Updated “Tested up to: 6.9”.
  • Enhanced code comments for better maintainability.

1.01

  • Updated version number format to 1.01.
  • Added styling to settings page via admin.css.
  • Clarified description trim length (55 words) in documentation.

1.0

  • Initial release.