[WordPress] 外掛分享: Multiple Featured Images

首頁外掛目錄 › Multiple Featured Images
WordPress 外掛 Multiple Featured Images 的封面圖片
5,000+
安裝啟用
★★★★
4.7/5 分(28 則評價)
2035 天前
最後更新
問題解決
WordPress 3.5+ PHP 5.6+ v0.5.0 上架:2012-04-25

內容簡介

如果您的 WordPress 網站需要多個精選圖片,包括文章、頁面以及自定義文章類型,那麼這個外掛就是為您所設計的!

這個外掛可讓您為所有文章類型(包括自定義文章類型和 WooCommerce 產品)啟用多個精選圖片並使用小工具或便捷的短代碼顯示這些圖片。

功能

添加您需要的數量的精選圖片。

將精選圖片添加到任何文章類型(包括發文、頁面或自定義文章類型和 WooCommerce 產品)。

可為不同的文章類型使用不同的精選圖片。如果您需要,輕鬆添加兩個新的精選圖片到頁面和三個到文章上。

完全可自定義的輸出 -- 因此它是多語言的。

方便的短代碼可在任何地方顯示精選圖片。

小工具可在側邊欄等地方顯示精選圖片。

歷史

我為其中一位客戶設計網站時,需要為頁面指定兩個精選圖片。其中一個精選圖片用作頁首圖片,另一個則用作子選單的小按鈕。這些圖片也需要不同 (因此我無法只使用不同的圖片尺寸),因此我寫了這個小型的外掛。

重要注意事項(針對從0.3更新的使用者):本外掛具有一種新的註冊精選圖片的方式,並更新了文章元數據鍵。它完全向後兼容,但如果您直接調用文章元數據鍵,請相應地更新您的程式碼。新的文章元數據鍵格式為 kdmfi_YOUR_ID。

貢獻

如果您使用這個外掛出現問題,請隨時請求幫助。但請謹記,本外掛是在作者的空閒時間開發的,因此可能需要一些時間來回應。
同時歡迎提出功能需求!

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.5.0) 或搜尋安裝

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

原文外掛簡介

You need more than one featured image for posts, pages and/or custom post types? Then this plugin is for you!
Enable multiple featured images for all post types (including custom post types and WooCommerce products) and show the images with a widget or the handy shortcode.
Features

Add as many featured images as you need.

Add the featured images to any post type (post, page or even custom post types and WooCommerce products).

It is possible to use different featured images for different post types. Easily you can add two new featured images to pages and three to posts, if you need it that way.

Fully customizable output – so it’s multilingual.

Handy shortcode for displaying the featured images everywhere.

Widget for displaying featured images in sidebars, etc.

History
For one of my customers I had to assign two featured images to pages. One featured image was used as the header image and the other as a small button for the submenu. The images had to be different too (so I couldn’t simply use different images sizes) and so I wrote this little plugin.

IMPORTANT NOTE TO THOSE UPDATING FROM 0.3: The Plugin comes with a new method for registering featured images and updates the post meta key. It is fully backwards compatible, but if you are calling the post metas directly then please update your code accordingly. The new format of the post meta key is kdmfi_YOUR_ID.

Contribute
Feel free to ask if you have problems with this plugin. But please keep in mind, that this plugin is developed in the author’s spare time – so it may take some time to answer.
Feature requests are welcome too!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon