[WordPress] 外掛分享: Featured Image in Content

首頁外掛目錄 › Featured Image in Content
1,000+
安裝啟用
★★★★★
5/5 分(9 則評價)
614 天前
最後更新
問題解決
WordPress 4.4+ v1.0 上架:2015-10-08

內容簡介

不是所有的佈景主題都工作方式相同,有時切換佈景主題可能會帶來許多困擾。如果您之前使用的佈景主題支援「精選圖片」(featured images)並在單篇文章檢視中顯示它們,您可能希望確保在切換至不顯示精選圖片的佈景主題時,這些圖片仍然顯示於舊內容上,而不必編輯所有舊內容。

此外掛自動在單篇文章檢視中的內容區域頂部顯示精選圖片。它不會檢查您的佈景主題是否顯示精選圖片,因此如果顯示,您將會看到重複的精選圖片。此外掛使用濾器功能運作,所以如果您再次切換至支援單篇文章檢視中的精選圖片的佈景主題,您可以停用此外掛,一切都會回復正常。此外掛不會在資料庫中保存任何資訊,也不會在此外掛中生成任何特殊的圖片尺寸。

可能成為 WordPress 核心材料

如果此外掛能在主題不支援精選圖片的情況下顯示現有的精選圖片,它可能成為 WordPress 核心材料。儘管這能減少潛在的內容丟失,但它也會對現有的內容產生重大影響。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Featured Image in Content」→ 直接安裝(推薦)

原文外掛簡介

Not all themes work the same way, and sometimes switching themes can lead to a lot of headaches. If you’ve previously used a theme that supports featured images and displays them on single post views, you probably want to ensure that these images are still shown if you switch to a theme that doesn’t show featured images here, without editing all of your old content.
This plugin automatically displays featured images at the top of the content area on single post views. It doesn’t check whether your theme displays them, so you’ll get double featured images if it does. It works via a filter, so if you ever switch themes again to one that does support featured images on single views, you can deactivate this plugin and things will go right back to normal. No information is saved in the database and no additional special image sizes are generated in this plugin.
Possible Core Material
This plugin may be material for WordPress core if it were to display featured images that exist when the current theme doesn’t support featured images. While this would reduce the potential for content loss, it would also have a significant affect on existing content.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon