[WordPress] 外掛分享: Dynamic Featured Image

WordPress 外掛 Dynamic Featured Image 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Dynamic Featured Image」是 2013-09-19 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 70000 個安裝啟用數。
  • 上一次更新是 2021-01-29,距離現在已有 1556 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.8 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.4 以上。
  • 有 58 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

cfoellmann | ankitpokhrel |

外掛標籤

featured image | post thumbnail | dynamic featured image | dynamic post thumbnail | multiple featured image |

內容簡介

此外掛可在頁面、文章及自訂文章類型中,動態地加入多個「特色圖片」或「多個文章縮圖」功能。使用此外掛,您可以無需編寫任何程式碼,便可以將任意數量的特色圖像加入。這些特色圖片可以透過不同的佈景主題函數來取用。

總覽

動態特色圖片(Dynamic Featured Image)可選擇在文章或頁面中增加「多個特色圖片」功能。
當您使用其他外掛、文章縮圖或輪播工具時,此功能尤其有用。
為何只限制自己使用一個特色圖片呢?加入多個特色圖片可以做更多的事情喔!
DFI 允許您在每篇文章或頁面中添加不同數量的特色圖像,這些圖像可以透過不同的佈景主題函數來取用。

關於支援的說明:我們樂意幫助您解決問題,但由於 WordPress.org 的支援論壇只有不時檢查,所以請勿過早設定期望。

如何操作?
1. 安裝成功後,進入文章或頁面的「新增」或「編輯」頁面,您會發現有第二個特色圖片的方塊出現。
2. 按下「選擇特色圖片」按鈕,從 「動態特色圖片 - 媒體選擇器」彈出視窗中選擇所需圖片,然後點擊「設置為特色圖片」。
3. 點擊「新增」以新增特色圖片,或使用「刪除」連結以刪除特色圖片方塊。
4. 您可以在佈景主題中使用函數$dynamic_featured_image->get_featured_images([$postId (選擇性)])來取得這些圖片。(詳細資訊請點擊此處)
5. 資料庫中的回傳形式如下:

有多個結果的陣列
0 =>
有特定數值的陣列
'thumb' => 字串 'http://your_site/upload_path/yourSelectedImage.jpg'(長度=50)
'full' => 字串 'http://your_site/upload_path/yourSelectedImage_fullSize.jpg'(長度=69)
'attachment_id' => 字串 '197'(長度=3)
1 =>
有特定數值的陣列
'thumb' => 字串 'http://your_site/upload_path/yourSelectedImage.jpg'(長度=50)
'full' => 字串 'http://your_site/upload_path/yourSelectedImage_fullSize.jpg'(長度=69)
'attachment_id' => 字串 '198'(長度=3)
2 => ...

資源
1. 詳細資料.
2. StackOverflow 標籤.

MultiSite 資訊
您可以使用「網路啟用」將此外掛啟用於單一安裝的所有網站,但僅能在網路管理員網站中使用,而無法在其他地方使用。
「啟用」功能會將此外掛啟用於您目前所在的網站,因此使用者可以自由在任何網誌中啟用或停用此外掛。

在從「網路」中刪除此外掛時,請確保它在 WordPress 網站的所有安裝中被禁用。

貢獻的方式
如果您希望檢查代碼並為此外掛做出貢獻,請加入我們的 GitHub。
歡迎透過「Pull requests」、「Issues」以及其他外掛推薦,為我們做出貢獻!

原文外掛簡介

Dynamically adds multiple featured image or multiple post thumbnail functionality to your page, posts and custom post types. This plugin provides you an interface to add any number of featured image as you want without writing a single line of code. These featured images can then be collected by the various theme functions.
Overview
Dynamic Featured Image enables the option to have MULTIPLE featured images within a post or page.
This is especially helpful when you use other plugins, post thumbnails or sliders that use featured images.
Why limit yourself to only one featured image if you can do some awesome stuffs with multiple featured image?
DFI allows you to add different number of featured images to each post and page that can be collected by the various theme functions.

A NOTE ABOUT SUPPORT: We’re here to help troubleshoot bugs, but please don’t set expectations early as the support forums at WordPress.org are only checked once in a while.

How it works?
1. After successfull plugin activation go to add or edit page of posts or pages and you will notice a box for second featured image.
2. Click Set featured image, select required image from “Dynamic Featured Image – Media Selector” popup and click Set Featured Image.
3. Click on Add New to add new featured image or use Remove link to remove the featured image box.
4. You can then get the images by calling the function $dynamic_featured_image->get_featured_images([$postId (optional)]) in your theme. (Click here for details)
5. The data will be returned in the following format.
array
0 =>
array
'thumb' => string 'http://your_site/upload_path/yourSelectedImage.jpg' (length=50)
'full' => string 'http://your_site/upload_path/yourSelectedImage_fullSize.jpg' (length=69)
'attachment_id' => string '197' (length=3)
1 =>
array
'thumb' => string 'http://your_site/upload_path/yourSelectedImage.jpg' (length=50)
'full' => string 'http://your_site/upload_path/yourSelectedImage_fullSize.jpg' (length=69)
'attachment_id' => string '198' (length=3)
2 => ...

Resources
1. Detail Documentation.
2. StackOverflow Tag.
MultiSite Info
You can use Network Activate to activate plugin for all sites on a single install. It is only available on the Network admin site not anywhere else.
Simple Activate activates for the site you are currently on. These will be permitted to be activated or deactivated on ANY blog.
While deleting the plugin from the Network be sure that the plugin is deactive in all installation of your WordPress network.
Contribute
If you’d like to check out the code and contribute, join us on Github.
Pull requests, issues, and plugin recommendations are more than welcome!

各版本下載點

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

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


3.3.0 | 3.3.1 | 3.4.0 | 3.5.0 | 3.5.1 | 3.5.2 | 3.6.0 | 3.6.1 | 3.6.2 | 3.6.8 | 3.7.0 | trunk |

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

  • Regenerate Thumbnails 》重新生成縮略圖插件可以讓您為已上傳到媒體庫的一個或多個圖像重新生成所有縮略圖大小。, 這對以下情況很有用:, , 您新增了新的縮略圖大小,並且您希望過去...。
  • 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 》如果你的網站上有數百個商品或部落格文章,卻遇到了無法設置或更改它們的特色圖片的問題嗎?我們理解這種困境,因此開發了一個外掛,只需要點擊一下,就可以...。
  • Add post thumbnail to wp-admin list view 》此外掛可以在 WordPress 文章列表頁面新增一欄,顯示文章縮略圖 (如果有的話)。, 開發人員可使用 mhm-list-postthumbnail/exclude_posttype 篩選器,依照需求...。

文章
Filter
Apply Filters
Mastodon