[WordPress] 外掛分享: Smart Featured Image

前言介紹

  • 這款 WordPress 外掛「Smart Featured Image」是 2017-06-07 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2017-08-29,距離現在已有 2805 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.3 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

grottopress | attakusiadusei |

外掛標籤

featured image | post thumbnail | smart-featured-image | automatic-featured-image |

內容簡介

重要提示: 此外掛需要 PHP 版本 5.3 或以上,建議使用 PHP 版本 7.0 或以上。

Smart Featured Image 是一個 WordPress 的外掛,可以自動將文章內容中的圖片設為特色圖片,當文章未設置特色圖片時。

預設情況下,WordPress 需要您為每個文章明確地設置特色圖片,即使該文章已經使用了圖片。

這個 Smart Featured Image 外掛可以省去設置特色圖片的步驟,只需儲存保存到文章內容的第一個本地圖片即可設置為該文章的特色圖片。

如果文章內容中找不到圖片,外掛會顯示預設圖片,而預設圖片設定可以在 WordPress 管理區域的媒體設定螢幕 (‘設定‘ -> ‘媒體‘) 中幫您完成。在這裡您可以設置每個公共文章類型的預設特色圖片。

Smart Featured Image 的運作方式如下:

檢查文章是否已添加特色圖片。
如果沒有,外掛會搜索與文章相關聯的圖片 (即當前文章上傳的圖片)。找到後,將固定使用第一個相關聯的圖片作為文章的特色圖片。
如果文章未上傳任何圖片,外掛將在文章內容中尋找插入的圖片,而不一定是與文章相關聯的圖片。找到後,將固定使用第一個插入的本地圖片作為特色圖片。
如果以上所有方法都失敗,外掛會回到媒體設定螢幕下的「預設特色圖片」中針對該文章類型所設定的預設圖片。

如在步驟 4 中所述,外掛不會將預設特色圖片保存為特色圖片,它只會在需要取得文章縮略圖時返回該預設特色圖片。這是預期的行為。

這意味著,每當預設特色圖片更改時,使用前一個預設特色圖片的所有文章都會自動使用新的預設特色圖片,因為舊圖片從未被儲存到資料庫中作為特色圖片。

您可以通過為任何特定的文章設置 no_sfi 自訂欄位並設置為除了 0 以外的任何值來禁用 Smart Featured Image。刪除自訂欄位,或將其設置為 0,可以恢復該文章的外掛功能。

請嘗試 Smart Featured Image 外掛,相信您會喜歡它的使用方式。

原文外掛簡介

IMPORTANT: This plugin requires PHP version 5.3 or newer. We recommend PHP version 7.0 or newer.
Smart Featured Image is a WordPress plugin to automagically add featured images to posts using images inserted into post content, if no featured image is added to a post.
WordPress, by default, requires you to explicitly set a featured image for each post even if there are images already used in the post.
The Smart Featured Image plugin frees you from the extra step of setting a featured image by saving the first local image it finds in the post content as featured image.
The plugin displays a configurable default image if no image is found in post content.
The default image settings are available via the Media Settings screen (‘Settings‘ -> ‘Media‘) in the WordPress administration area. There are options to set the default featured image for each public post type.
Smart Featured Image works by:

Checking if a featured image was added to the post.
If no featured image was added, the plugin looks for images attached to the post (ie images uploaded to the current post). If found, the first attached image is saved as the post’s featured image.
If no image was attached to the post, the plugin looks for an image inserted into the post content, but not necessary attached to the post. If found, the first local image inserted is saved as featured image.
If all of the above fail, the plugin falls back to the default featured image set for the post type in question under the Default Featured Image section of the Media Settings screen.

You would notice that, in step 4 above, the plugin does not save the default featured image as the featured image. Rather, it simply returns that image whenever a call to get the post thumbnail is made. This is the intended behaviour.
This means, any time the default featured image changes, all posts that used the previous default featured image would automatically use the new default featured image since the old one was never saved to the database as featured image.
You can disable smart featured image for any specific post by setting a no_sfi custom field to any value other than 0. Delete the custom field, or set to 0, to restore plugin functionality for that post.
Give Smart Featured Image a shot. You will love it.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Smart Featured Image」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.1.0 | 0.1.1 | 0.1.2 | 0.1.3 | 0.2.0 | 0.2.1 | 0.2.2 | 0.2.3 | 0.2.4 |

延伸相關外掛(你可能也想知道)

  • Regenerate Thumbnails 》重新生成縮略圖插件可以讓您為已上傳到媒體庫的一個或多個圖像重新生成所有縮略圖大小。, 這對以下情況很有用:, , 您新增了新的縮略圖大小,並且您希望過去...。
  • Dynamic Featured Image 》此外掛可在頁面、文章及自訂文章類型中,動態地加入多個「特色圖片」或「多個文章縮圖」功能。使用此外掛,您可以無需編寫任何程式碼,便可以將任意數量的特...。
  • Post Thumbnail Editor 》為了滿足主題中文章縮圖大小隨機而任性的需求(導致 WordPress 簡單地從中間剪裁圖像(無論是切掉頂部和底部還是切掉兩側)),此外掛試圖為用戶提供一個介面...。
  • Featured Image Admin Thumb 》啟用此外掛後,它會在「所有文章/所有頁面」及支援的所有自訂文章類型管理介面中新增一欄,名為「Thumb」。這一欄會顯示文章特色圖片或者是文章縮圖的縮略圖...。
  • Multiple Featured Images 》如果您的 WordPress 網站需要多個精選圖片,包括文章、頁面以及自定義文章類型,那麼這個外掛就是為您所設計的!, 這個外掛可讓您為所有文章類型(包括自定義...。
  • Default Thumbnail Plus 》使用這個 WordPress 外掛可以自動顯示預設文章縮圖,可以選擇是文章附加的第一張圖片還是設定某個分類、標籤或自訂稅項的預設圖片。支援自訂欄位以便更容易升...。
  • Fix Media Library 》Fix Media Library 外掛程式可以解決 wp-content/uploads 資料夾與資料庫中的不一致問題,並且修復損毀的 Media Library 資料庫紀錄。此外,這款外掛還能夠有...。
  • SB RSS feed plus 》你可以通過此外掛改進 WordPress 的預設 RSS feed,以包含以下內容:, , 此外掛會將文章縮略圖添加到 RSS feed 中的「media:content」和「enclosure」標籤中...。
  • Remove Featured Image 》有時開發人員希望在單篇文章或所有文章詳細頁面中顯示/刪除/隱藏特色圖片。有時開發人員只想在特定文章頁面上顯示,而隱藏所有文章的特色圖片。這個外掛將滿...。
  • Add Featured Image to RSS Feed 》這個外掛是專門為了將文章的特色圖片加入到 RSS 訂閱中,並指定使用「大尺寸」的圖片。它只有一個功能,就是完成這個任務。。
  • Post Words Counter and Thumbnail Checker 》Post Words Count 是一款簡單的外掛,可以在儀表板的所有文章區域顯示文章的總詞數和文章縮略圖。因此,您可以輕鬆查看文章的總詞數,以及包括或不包括文章縮...。
  • Post Featured Video 》「Post Featured Video」外掛是一個高度自訂的工具。您可以在輕盈的盒子中顯示影片,啟用自動播放影片,啟用顯示模式(例如:Youtube、Vimeo 或上傳 MP4 影片...。
  • Featured Image Widget 》使用這個外掛在您的側邊欄顯示任何文章或頁面的精選圖像。如果已設定精選圖像,則會顯示它。如果沒有設定精選圖像,外掛會嘗試使用父文章/頁面的圖像。否則,...。
  • Featured Image in Content 》不是所有的佈景主題都工作方式相同,有時切換佈景主題可能會帶來許多困擾。如果您之前使用的佈景主題支援「精選圖片」(featured images)並在單篇文章檢視中...。
  • Bulk Featured Image 》如果你的網站上有數百個商品或部落格文章,卻遇到了無法設置或更改它們的特色圖片的問題嗎?我們理解這種困境,因此開發了一個外掛,只需要點擊一下,就可以...。

文章
Filter
Apply Filters
Mastodon