[WordPress] 外掛分享: Replace Thumbnail with oEmbed

首頁外掛目錄 › Replace Thumbnail with oEmbed
全新外掛
安裝啟用
尚無評分
2573 天前
最後更新
問題解決
WordPress 4.0+ v1.2.5 上架:2017-04-05

內容簡介

注意:WP 版本 5+ — 此外掛不支援古騰堡版面編輯器(Classic Editor 外掛除外)!古騰堡版面編輯器有自己的 oEmbed 元素 HTML 結構,很難針對此進行調整。

此外掛會檢查內容的第一行是否是有效的 oEmbed URL,如果是,就會用 oEmbed 元素(如YouTube影片)替代縮圖。現在你不必太在意縮圖,因為你可以看到影片或其他 oEmbed 內容。你甚至可以在博客的首頁上觀看影片,而不必打開文章。

適用於所有有縮圖且未受密碼保護的 WordPress 內容。

啟用中的 WordPress 主題必須使用 the_post_thumbnail() 或 get_the_post_thumbnail() 函數才能正常運作!

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Replace Thumbnail with oEmbed」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

ATTENTION for WP Version 5+: This plugin does not work with Gutenberg (no problems with Classic Editor plugin though)! Gutenberg brings its own HTML structure for oEmbed elements, which is quite difficult to target.
This plugin checks, if the first line of the content is a valid oEmbed URL. If that is the case, it replaces the thumbnail image with the oEmbed element (e. g. with a YouTube video). Now you don’t have to care too much about a thumbnail image, since instead you would see the video or any other oEmbed content. You can even e. g. watch videos on your blogs front page without opening the post.
Works for all WordPress contents, which have a thumbnail set and are not password protected.
The active WordPress Theme must use the_post_thumbnail() or get_the_post_thumbnail() functions for this to work!

延伸相關外掛

文章
Filter
Mastodon